Prompt is not defined


#1


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


It tells me that the prompt is not defined. Any help?


// Check if the user is ready to play!
confirm("I am ready to play!");
var age = prompt("What's your age?");
if (age < 13) {
    console.log("You are allowed to play but I take no responsibility")
} else{
    console.log("You're good!");
}
console.log("You are at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off, start racing.'")
console.log( "Suddenly, Bieber stops and says, 'Who wants to race me?'")
var userAnswer = promt("Do you want to race Bieber on stage?");


#2

promt

misspelling there!


#3

Thank you soooo much


#4

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