The Story Heats up


#1

Pretty sure im not missing anything but when i run the program and i enter in "yes" it keeps telling me if i remember to put yes in the answer option....but then it prints out the line that corresponds with a "yes" response in the console....i just cant move forward....

// Check if the user is ready to play!
confirm("Are you ready to play?");

var age = prompt("What's your age");

if (age < 13) {
console.log("You are allowed to play, but we are not responsible for misuse.");
}
else {
console.log("Great! You can continue to the game.");
}

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

nvm, i reset the code and changed the if/else to if(userAnswer == 'yes') it worked....


#3

its shoelace not showlace.


#4

what is my problem said my syntax is wrong