Stuck on Lesson 25? ^^;


"SyntaxError: missing ) after argument list"

var myCountry = "United States";

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


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


That worked! Thank you!


There should be a second close parentheses after 3


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


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