Stuck on 25! please help


#1

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

Can you describe the issue you are having with this exercise or provide the error you are getting?


#3

Next day, copied the same code again and it worked!

i think its because i wrote var myCountry : String = "Australia" and it something went wrong.

But thanks for helping anyway


#4

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