25. somebody please help me with this one. I dont understand why its not working


#1

somebody please help me with this one. I dont understand why its not working.

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

// 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. More Variable Trouble
25. More Variable Practice - stuck
#2

Hi you should remove the " " around myCountry in all your code. Because it make it a string.


#3

thanks. it worked :slight_smile: