SyntaxError: Unexpected token var


#1

Old enough to play exercise.

SyntaxError: Unexpected token var...

what am I doing wrong?

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

#2

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

(age<13)

#3

var stands for variable. Use your variable name instead.