25/28, What am I getting wrong?


#1

This is my code, but it says the syntax has a problem and I don't know what it is, can someone help?

// Declare a variable on line 3 called
// myCountry and give it a string value.
var myCountry 'America';

// 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) );


#2

To assign a value you need use an = sign.


#3

Ah, okay, thank you very much! :smiley: