What's wrong with my code? (25)


#1



https://www.codecademy.com/courses/getting-started-v2/4/2?curriculum_id=506324b3a7dffd00020bf661


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.
console.log(myCountry.length);



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


#2

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

Hope this helps :slight_smile:


#3

Thank you so much! :slight_smile:


#4

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:


#5

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


#6

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