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

0 points
Submitted by Hab
over 9 years

25/28

Why is this not working?

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

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

Answer 5421c68a631fe961f600449c

0 votes

Permalink

Not sure if you have passed this already or still an issue, I have tried you code just copy and paste and It passed on my end. Have you restarted you’re browser?

points
Submitted by cecil
over 9 years

1 comments

DBLM over 9 years

well, it worked for me

Answer 54235716282ae3a8cd00064a

0 votes

Permalink

put a number instead of

(myCountry.length);

points
Submitted by emmathompson12345
over 9 years

1 comments

Answer 54a9797a86f5529629007953

0 votes

Permalink

worked on mine, and i was using chrome

points
Submitted by Ambrose Witherspoon
about 9 years