Need some help please


#1

Hi,

Please help.
My pop-ups are coming up correctly as far as I can see but I am still getting this message:

Oops, try again. It looks like you didn't check for the user's age.

And not moving forward to the next lesson.

Here is my code:
confirm("Are you ready to play?")
var age = prompt("What's your age?");
if (age < 18) {
console.log("You are allowed to play but I do not take responsibility for your pain")
}
else {
console.log("welcome to your doom")
}


#2

from the instructions:
Then write an if/else statement. If age is less than 13, use console.log to tell the user that they're allowed to play but you take no responsibility

you check if the player is eighteen or older, not thirteen


#3

Hahaha, thanks so much.

Didnt think what age I chose mattered.