Syntax Error


#1

Hi. My first day coding and I'm stuck! I can't see the syntax error in the following:

// Check if the user is ready to play!
confirm("I'm ready to play!");
var age = prompt("What's your age?");
if(age < 13); {
console.log("Please ask permission before playing this game");
} else {
console.log("Let's play!");
}

It's no doubt a simple mistake but - at present - it's beyond me to find. Would anyone be willing to help?

With thanks, John


#2

You have a semicolon after the condition in your if statement, that should not be there.


#3

Many thanks. Kind of you to help out a beginner