Can anyone tell me what is wrong with this. It works properly when I run it. It asks for the number, and gives me the proper response


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

// Check if the user is ready to play!
confirm("I am ready to play!")
var age = prompt("what's your age");
confirm (age)
if (age<10)
    console.log("I do not take any responsibility for you being able to play this game");
    console.log("You are wise to choose this path! Have fun")


You were asked to check if age is less than 13, not 10 :slight_smile:




You're very welcome :slight_smile:


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.