The Story Heats Up! Javascript


#1

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


#2

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


#3

Thank you! :slight_smile:


#4

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.