25. I can't seem to get the code right


#1

Can you help me figure this out? I can't seem to get the code right. I seem to be missing the part of: //myCountry and give it a string value.

// Declare a variable on line 3 called
// myCountry and give it a string value.
var myCountry = "United States";
"United States".substring(0,13);

// Use console.log to print out the length of the variable myCountry.
console.log("myCountry".length);

// Use console.log to print out the first three letters of myCountry.
console.log("myCountry".substring(0,3) );


25. "USA".substring(0,3)
#2

Hi this part

console.log("myCountry".length);

Remove the " " around myCountry because in this case it give you the length of the string "myCountry"

The same here

console.log("myCountry".substring(0,3));

remove the " " around myCountry.


#3

Thanks so much! It worked like a charm.