Exercise 24...I'm getting closer?


#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.substring(0,5) );

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


#2

change your

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

into

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