Im stuck on 25


#1



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


this is what I have
var myCountry.substring = "Missouri".length


#2

Hi @eliozikpi,

Is that what you have written to fulfill this part of the instructions:?

// Declare a variable on line 3 called
// myCountry and give it a string value.

#4

myCountry.substring is not a variable name.
On line 3 : Your variable name is just myCountry.

line 6 : Use console.log to print out the length of the variable myCountry.
So you can evaluate the length of the variable by typing
myCountry.length

Then on line 9 calculate the substring and print it on console using console.log
myCountry.substring()
Inside the brackets above write the correct numbers to get the answer.


#6

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