This forum is now read-only. Please use our new forums! Go to forums

banner
Close banner
0 points
Submitted by somethingsam123
about 9 years

It looks like you didn't log the length of myCountry to the console.

// Declare a variable on line 3 called // myCountry and give it a string value. var myCountry=”USA”;

// 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,4))

Answer 54e8f93ed3292fdd96001f61

1 vote

Permalink

Hey there,

Remove the quote marks around myCountry when you’re console.log()ing it.

points
Submitted by Zeke Y
about 9 years