What am I missing here?


#1

// 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).length;

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

What am I missing here?


Help me
#2

console.log() does not have a method, substring(). Apply that method to the string object stored in the variable.

console.log( everything in here );

#4