Syntax error- unexpected token illegal


#1

im at a complete loss for what this means and how to fix it, ive assumed i might be missing or have an extra semicolon or something somewhere... but where i dont know lol feel free to help me fix my code and youll recieve much of my appreciation.

// 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("Hope you enjoy!");
}
else
{
console.log("Don't let your mother find out!")
}


#2

You have a mixture of double quotes and single quotes ..

Change single quote to double quote


#3

-.-

i wouldve figured that out eventually!!! lol

but seriously thanks, cant believe it was that.


#4

Sure np happy coding :smile: