25. More Variable Practice


#1

Can’t solve this, please help!

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

Oops, try again. It looks like myCountry isn’t a string.
Oops, try again. There was a problem with your syntax.


// Declare a variable on line 3 called
// myCountry and give it a string value.
var myCountry = 9;
myCountry % 3;
// 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

Hi @coreace55387,

Did you study the comments in your code that the lesson gave you? You need to follow those instructions in order to continue/pass the lesson. :slight_smile:


#3

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