2. Old enough to play?


#1

// Check if the user is ready to play!
confirm("Are You ready to Play?")
var age = prompt ("what is your age");
if(age >= 16)
{
console.log("you are allowed to play");
}
else
{
console.log("you are not allowed to play");
}

==== Oops, try again. It looks like you didn't check for the user's age.=====


#2

You're missing a semicolon.


#3

I found the problem. the lesson is to check the age at "13"