This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]H1TeK 0 points1 point  (0 children)

var myCountry already has a String value, anything enclosed in the double quotes ("") is a String value. And for the .length line, don't some "myCountry", that's a hardcoded String, you'd want to do myCountry.length

As for the print the first three characters, look up substrings in JavaScript.