Syntax error


SyntaxError: Unexpected identifier

// Check if the user is ready to play!
confirm("I am ready to play this game!");
var age = prompt("What's your age?");
age < 16
    console.log("Sorry youngster");
    console.log("Let's do this")


not sure if I'm correct but I think if "Sorry youngster" is not EXACTLY what they said for you to put there if not well put what it says, I tried making it my own and that didn't work either


same thing with the age but I still could be wrong


:confounded:but I tried


age < 16 needs to be in ()


you need to put the condition(age < 16) in parentheses like this:

if(age <16) {
console.log("Sorry youngster");



By the way, you are supposed to test whether the user is above 13 or not.