Did not log the length


#1

I am working on this code, posted below, and the error message says that "It looks like you didn't log the length of myCountry to the console."

Anyone know what I left out?
Thank you.

// Declare a variable on line 3 called
// myCountry and give it a string value.
var myCountry="United States";

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

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


#2

Use the console to print the length, I guess you have to use the var.length.
So in the case of the first substring you need to replace substring with length.


#3

Yeah, I figured it out soon after I posted that. Just like I knew that I would.

Thank you for your time.