Old enough to play error



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!");


This is just a typo :slight_smile:

It should be prompt, not promt.


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


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