#25 Please Help, Keep getting Error. What am I doing wrong?


Replace this line with your code. 
// 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.


var myCountry = "united states";

myCountry is the variable and the value of myCountry is "united states".

You should take out the quotes for console.log("myCountry".length) and "myCountry".substring(0,3);

Also in the third exercise it says to use console.log

Hope it helps


Still getting a error


You didn't use console.log in the third exercise


Got it!!! Thanks so much@anniewong630


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