Having trouble with variables



I have no idea what to put in

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

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


First, remove those "" on the variables.

On line 3, declare a variable for "myCountry" to any country of your choice.
var myCountry = "Mexico";

Then, you have to console.log to print the length of "myCountry".

And finally, print only the first 3 letters on "myCountry"

Remember, coding isn't that easy.


Thanks because I was having trouble with this one myself :slight_smile: