25 More varaiable practice


Can someone help me with my code here if possible?


// 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.


Very simple error but I almost missed it haha!

You see (myCountry). ?

You have a parentheses after that which shouldn't be there. It should look more like (myCountry. whatever goes here
and another small error being the 0.3 should be a comma.

Worked like a charm after that!


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.