The expression you want to evaluate must be contained in brackets.
Code:
var str = "I'm coding like a champ!"
if (str.length >10) { // returns true or false
alert ("The length is over 10");
}
or
Code:
if ("I'm coding like a champ!".length >10) {
alert ("The length is over 10");
}
Quizmaster: What three-letter word means "at this moment"?
Contestant: Then.