25. I am stuck here and cant seem to move forward


#1

Chapter 25 more variable.

I am stuck here and cant seem to move forward.
Here my code. Can someone please provide the correct answer

// Declare a variable on line 3 called
// myCountry and give it a string value.
var myCountry = "New York";
myCountry.substring(0,8)
// 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));


25 more variables
#2

Hi @rishit005,

JavaScript is case sensitive, it knows the difference between upper and lower case letters.

mycountry and myCountry are not the same thing.


#3

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