What is the error in this JS code?


In the codeacademy, Javascript learnings..... I am at present in Code Your Own Adventure - "First Move".

The below code shows this error: "Oops, try again. Do you want to race Bieber on stage?"

// Check if the user is ready to play!
confirm("Would you like to play with me");
var age = prompt("What's your age");
if (age >= 13) {
console.log("You CAN PLAY now");
} else {
console.log("You CANNOT PLAY, Sorry...");
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("OK, you CAN proceed"); }
{ console.log("Sorry, you CANNOT proceed"); }

Please help me to find the error....


the string logged should be an exact match, copy paste it from the instructions. stage should be all lowercase


Unable to solve based on your reply. Please help me to resolve.... so that I will be able to proceed....
Please let me know the exact place where I committed the error...


look at this two strings:

# correct string
"Do you want to race Bieber on stage?"
# your strnig
"Do you want to race Bieber on Stage?"

they are not identical. Please use the correct string, stage vs Stage, i even posted this in my original reply:


Thanks a lot ! You did it....