2/7 Can't figure out what I'm doing wrong!


#1

It keeps saying there's a syntax error, but I can't find it!

confirm("Play Haunt the Manor?");
var age = prompt("What is your age?");
if(age < 13);
{
console.log("Not responsible for underage players!");
}
else
{
console.log("Play on, if you dare!");
}


#2

Hi, you shouldn't use semi-colon after if(condition).


#3

If you still don't understand it you should't put semi-colon ( ; ) after if condition.
You'r code should look like this:
if(age < 13)
Please like my post if I helped you! Thanks.