#25 Javascript Help!


#1

I'm enrolled in the JavaScript program and I can't get this one to work.
Help!!
Here is the 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.
console.log(var myCountry.length);
// Use console.log to print out the first three letters of myCountry.
console.log(var myCountry.substring(0,2));


#2

Hey @lucharb3! Your problem is when you print it print it like this;

console.log(myCountry.length);

not like with the var on it since you already inialized it.

Same with the other one..

console.log(myCountry.substring(0,2));

Hope it worked if it didnt Just reply saying so and ill do my best to help! Cheers!