Lesson 25, Error


#1

Hi

i always get an error message on question 25.

"Oops, try again. Did you declare a variable called myCountry?"

and cant complete this lesson.

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

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

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

#2

var myName = "myCountry"; Here you Declare a variable called myName!

var myCountry = "Germany"; Here we Declare a variable called myCountry!


#3

OMG, stupid me.
Brain freeze i guess :smiley:


#4

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