Stuck on Lesson 25


#1


It keeps saying "Oops, try again. It looks like you didn't log the first 3 letters of myCountry to the console."


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

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

you should log the first 3 letters of the myCountry variable, not of a newly created string myCountry.


#3

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