2. Old enough to play


#1

What is wrong here, please ?
Here's my code

// Check if the user is ready to play!
confirm("I'm ready to enter !");
var age = prompt("What's your age ?");
if (age < 18)
{
console.log("not old enough to enter !");
}
else
{
console.log("enter and enjoy !");
}


#2

Hello @methodmaster72777,
what does your Error say?

As far as I remember the exercise, you have to put the exact age/code in there (guess it was 13?!)
At the very end of the entire exercise you can change the required age to whatever you want.

Hope I could help you :slight_smile:


#3

Thank you 0xb4dc0ded,
I found. It was just to replace 18 with 13, as requested in instructions.


#4

Glad to read.

You're very welcome :slight_smile:


#5