25. More Variable Practice - stuck



ReferenceError: Canada is not defined

Replace this line with your code. 
// Declare a variable on line 3 called
// myCountry and give it a string value.
var myCountry = Canada; 

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


Looks like you've got when to use quotations confused. The quotations are for surrounding strings like in:

 var myCountry = "Canada";


Thanks, I've managed to sort it out. I'm still not clear on quotation usage, I had removed them after reading this: