Lesson 25


#1

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


#2

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 ?


#3

console.log(myCountry.length);?


#4

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