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


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!");


var age = (13);

try getting rid of the parenthesis.


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.


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