#25 Please Help, Keep getting Error. What am I doing wrong?


#1



Replace this line with your code. 
// 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.
"myCountry".substring(0,3);


#2

var myCountry = "united states";

myCountry is the variable and the value of myCountry is "united states".

console.log("myCountry".length);
You should take out the quotes for console.log("myCountry".length) and "myCountry".substring(0,3);

Also in the third exercise it says to use console.log

Hope it helps


#4

Still getting a error


#5

You didn't use console.log in the third exercise


#6

Got it!!! Thanks so much@anniewong630


#10

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.