Need help 25/28


#1

What am I doing wrong? It just says "Your code doesn't look quite right"

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

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


#2

Semi-colons are the death of Javascript. Whenever anything is wrong, check for semi-colons, In most cases you on one after every line of code.


#3

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

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

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

TRY it.for me it's work