The Story Heats Up! Javascript


So I am stuck on the story heats up! Java Script. It keeps asking if i put an if statement in my code. Could osmeone help!? :))))))

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!");
console.log("Oh no! Bieber shakes his head and sings 'I set a pace, so I can race without pacing.'");


Hi it's because You remove the if statement that check for the age


Thank you! :slight_smile:


Its funny that this is the problem as when you reset the code it doesn't replace that if statement. I was also having an issue figuring out the problem here. Thank you.