Stuck on Lesson 25? ^^;


#1


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


"SyntaxError: missing ) after argument list"


var myCountry = "United States";

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

Please remove the " " quotes around both console.log statements of the variable myCountry and it should work. :slight_smile:


#3

That worked! Thank you!


#4

There should be a second close parentheses after 3


#5

2 posts were split to a new topic: It looks like you didn't log the length of myCountry to the console


#6

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