Old enough to play error


#1


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

The error I keep getting is "Your code does not look quite right..." and I don't understand what I am doing wrong...


// Check if the user is ready to play!
confirm("I am ready to play!");
var age = promt("What's your age");
if (age < 13)
{
    console.log("You're allowed to play but you take no responsibility");
}
else {
    console.log("I believe in you! Have fun and good luck!");
}


#2

This is just a typo :slight_smile:

It should be prompt, not promt.


#3

Thank you so much! I would have never caught that :grin:


#4

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