Syntax error: missing ) after condition (old enough to play?)


#1

I can't figure out what's wrong, please help. thanks!

confirm("I am ready to play!");
var age = (13);
var age = prompt("What's your age");
if (age is less than 13) {
console.log("You are allowed to play, but we take no responsibility");
} else {
console.log("Congratulations and Good luck!");
}


#2

var age = (13);

try getting rid of the parenthesis.

ALSO!

if (age is less than 13) {

should be:

if (age < 13) {

The instructions for this lesson are a little catty-wompus. so give it a bit of time to understand.


#3

Thanks so much! for so reason it didn't like the semicolon after the if statement!lol! thanks again!