SyntaxError: Unexpected token var


Old enough to play exercise.

SyntaxError: Unexpected token var...

what am I doing wrong?

var age = prompt("What's your age");
console.log("You're allowed to play , but I do not take any reponsibilly");
console.log("You may start the quest and Fight for glory!");


You will want to use the variable age in your IF condition



var stands for variable. Use your variable name instead.