Lesson 25


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

// Use console.log to print out the length of the variable myCountry.
console.log(.length myCountry );

// Use console.log to print out the first three letters of myCountry.
console.log(myCountry.substring(0,3) );

IDK what I am doing wrong...Plz help

Replace this line with your code.


console.log(.length myCountry );

how can i get the length of a variable?it's not the right syntax.

can you think what the right syntax is ?




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