Feedback for bieber 6 HELP


#1

prompt("are you ready to play?");
confirm("yes");
var age = prompt("What's your age");
if ( age < 13)
{ console.log("We're allowed to play, but you take no responsibility") }
else
{ console.log("Well, welcome!") }

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 shoelace!") }
else
{console.log("Oh no! Bieber shakes his head and sings 'I set a pace, so I can race without pacing.'")}
var feedback =prompt("message");
if (feedback > 8)
{console.log("Thank you! We should race at the next concert!")}
else
{console.log("I'll keep practicing coding and racing.")};

TypeError: prompt is not a function. (In 'prompt("are you ready to play?")', 'prompt' is "feedback")


#2

sorry adressed the wrong thing in my original post here.

your first line of code is not supposed to be:

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

it is supposed to be:

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

you also won't need your line that says:

confirm("yes");

hope this helps