#25 of "Getting Started" - Error in Coding?



I keep getting this error:
Oops, try again. It looks like you didn't log the length of myCountry to the console.

Here is what I typed in as instructed:

// Declare a variable on line 3 called
// myCountry and give it a string value.
var myCountry = "United States";

// Use console.log to print out the length of the variable myCountry.

// Use console.log to print out the first three letters of myCountry.

When I click the "Save and Submit Code" button, the error message pops up even though the console shows the correct text...

So, I'm stuck at #25 and cannot move on until I - or someone sees - see what I am doing incorrectly...!




you should log the length of of myCountry to console, remember .length? It gives you the length of a string or a string in a variable:


would give you 3


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.