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


#1


https://www.codecademy.com/en/courses/javascript-beginner-en-x9DnD/0/2?curriculum_id=506324b3a7dffd00020bf661

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");
}
else
{
    console.log("You are wise to choose this path! Have fun")
}


#2

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


#3

Thanks.:slight_smile:


#4

You're very welcome :slight_smile:


#5

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