Did you remember to put in the 'yes' answer option?"


#1

For me, it keeps throwing "Oops, try again. Did you remember to put in the 'yes' answer option?"
It's a bug I believe! Not sure what's wrong with my code! Any help would be greatly appreciated!

confirm("Are you ready to play?");
var age = prompt("What's your age?");
if (age < 13)
{
console.log("You're allowed to play, but I'm not responsible");
}
else
{
console.log("Have fun, noob!");
}

//Part 2
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?'");

//Part 3
var userAnswer = prompt("Do you want to race Bieber on stage?");
if (userAnswer === "yes")
{
console.log("Oh no! Bieber shakes his head and sings 'I set a pace, so I can race without pacing.'");
}
else
{
console.log("Oh no! Bieber shakes his head and sings 'I set a pace, so I can race without pacing.'");
}


Code Your Own Adventure, problem
#2

Your console.log statements are identical. Change the one for your if statement to the one given in the instructions.


#3

Woah! Thanks a ton, man! I just noticed my error! :sweat_smile:


#4

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