25/28, What am I getting wrong?


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.

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


To assign a value you need use an = sign.


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