Prompt is not defined


#1

I'm stuck on exercise 2 (Old enough to play?) in lesson 2 (Code your own adventure.

The console keeps saying that the prompt is not defined

Here is my code:

confirm("I am ready to play");

var age = promt("What's your age");

if(age < 13)
{
    console.log("You are allowed to play this game, but we take no responsibility");
}
else 
{
    console.log("Have fun");
}

#2

you misspelled prompt? A letter is missing


#3

OH! facepalm thanks


#4