Help with code


#1

I want to know what is wrong with my code and why.

confirm ("I am ready to play!");
var age = promt("What's your age");
if (age < 13)
{
console.log("You're allowed to play but I take no responsibility.");
}
else
{
console.log("Play on!");
}

The error I get is: Oops, try again. Your code doesn't look quite right. Check the Hint if you need help!

Replace this line with your code.


#2

prompt not promt :slight_smile:


#3

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