It keep saying that there is a syntax issue, pls help


#1

PLS I need help!

This is the line of code:
// Check if the user is ready to play!
confirm("Are you Ready? ARE YOU READY TO ENTER THE DEPTHS OF THIS UNFINISHED GAME? PRESS YES TO CONTINUE");
var Age = prompt("ARE YOU MAN ENOUGH TO PLAY THIS GAME? TELL ME YOUR AGE!");
if(Age is less than 13)
{
console.log("I see that you are a young one. Many who are young fail to finish, but I have a feeling that you will succeed.");
}
else
{
console.log("Aha, an old and wise one eh? You will have no trouble beating this game.");
}

-Thanks


#2

Wait now it says that I did not define the variable age??


#3

Hi this line

if(Age is less than 13)

you should remove the is less than and put <

Wait now it says that I did not define the variable age??

the variable should be age and not Age


#4

ohhhh, I see how it works now! Thanks