Old enough to play


#1

confirm("Are you ready?");
var age = prompt("What's your age?");
if (age < 13);
{
console.log("You've been warned.");
}
else
{
console.log("Game on!");
}

SyntaxError: Unexpected token else

I don't know what's wrong.


#2

Get rid of the semicolon at the end of this


#3

It worked. Thank you!