5/7 typeError: prompt is not a function


confirm("Are you ready to play?");

console.log("I am!");

var age = prompt("What is your age?");

if(age < 13) {
console.log("You are still young, so I take no responsability.");
confirm("Do you want to go on?");
} else {
console.log("Get ready! This is gonna be a bumpy ride!");
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 = prompt("Do you want to race Bieber on stage?");

if (userAnswer === "yes")
console.log("You and Bieber start racing. It´s neck and neck! You win by a shoe lace!");
console.log("Oh no! Bieber shakes his head and sings 'I set a pace, so I can race without pacing.'");
i don't know what i'm doing wrong


Did you try
++++ reset of session *****************
under certain circumstances you can shoot your Browser in an
inconsistent state.

Therefor it is of an advantage to know that you have 2 reset facilities:

One is the use of the F5-key which does a refresh Browser


Two, select&copy your code
Then use the Reset Code button of the course-window,
then paste your code back in.

Addendum from Tony de araujo
General Notes:
Always refresh the browser after making corrections:
CTRL f5 ( if on Windows or Linux)
CMD r ( if on a MAC).