Help with, old enough to play yet? Thanks :)


Thanks for viewing guys and girls, I just cant see where I'm going wrong with this one. I have posted previously and was told that it was the age 13 bit, but having played around with it this is not the problem.

Old enough to play?

SyntaxError: Syntax error and other such as missing a bracket

// Check if the user is ready to play!
confirm ("I am ready to play!");
var age = prompt("What's your age");
if (age < 13);
console.log ("You are allowed to play but i can take no responsibility!");
console.log ("Go ahead and play until your hearts content!!!!");


if you get rid of all your semi-colons you should fix your syntax error


That fixed it, thank you so much I was tearing my hair out lol. Obviously not literally but yeah, would you be able to tell me why that was a problem?


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.