Pls Help


#1

// Declare a variable on line 3 called
// myCountry and give it a string value.
var myCountry = "Egypt";

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

and it still tells me that it's wrong with the myCountry length ?

Oops, try again. It looks like you didn't log the length of myCountry to the console.


#2

You should get rid of " " in "myCountry" - otherwise it is not seen as a function name but a normal string.


#3

thank you very very much :smiley: