2. Old enough to play


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 !");
console.log("enter and enjoy !");


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:


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


Glad to read.

You're very welcome :slight_smile: