25/28


#1

what do i change

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

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

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


#2

First, the original console.log is just checking the string length.
Finally, the variable myCountry should not be in quotations.

Let me know if this helped.


#3

This is a little confusing:

Here is what I had.

console.log(myCountry.substring(0,3));
console.log(myCountry.length);

#4

That is the same, but I just had bad formatting.


#5

console.log( myCountry.length );

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

here this is what I did and it worked


#6

thanks guys i got it