What is wrong with it? No Yes?


#1


Exercise 5: The Story Heats Up

ERROR: Did you remember to put in the 'yes' answer option?
But, I did. I think I have everything but it still gives me error.


Replace this line with your code. Do not remove the backticks.
// 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 may be too young to play this game. Ask a parent for permission.");
}  else  {
    console.log("Let's Play!");
}
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 showlace!");
} else {
    console.log("Oh no! Bieber shakes his head and sings.'I set a pace, so I can race without pacing'");
}


#2

Did you answer yes when you ran your code?


#3

Yes, I did. I tried to answer with no as well, but it gives me the same error message.


#4

Just a little typo there.


#5

Oh my god. Thank you


#6

Hi,
Im getting this error message ..

Oops, try again.
Did you remember to put in the 'yes' answer option?

Please help me to solve this

Here is my code:
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 showlace!");
} else {
console.log("Oh no! Bieber shakes his head and sings.'I set a pace, so I can race without pacing'");
}


#7

It should be shoelace, like @albionsrefuge said.


#8