What's wrong with my code? (25)



Oops, try again. Your code doesn't look quite right. Check the Hint if you need help!

Replace this line with your code. 

yCountry and give it a string value.
var myCountry = "Greece".string;

// Use console.log to print out the length of the variable myCountry.

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


In the first variable, you don't need .string. Putting quotation marks around "Greece" declares it as a string.

Hope this helps :slight_smile:


Thank you so much! :slight_smile:


No problem! Hey could you click the check box in the reply that solved the question? I'm trying to get the Help Desk (Bronze) badge and that'd help out a lot! :sweat_smile:


Sorry I didn't know this box, now it's chεcked ¨)


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