The story heats up


#1

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 shoelace!")
}
else
{
console.log("Oh no! Bieber shakes his head and sings 'I set a pace, so I can race without pacing.'")
} what is the error ...it says did u add if statement


#2

HI what error do you get?


#3

oops tryagain:-did you add if statement to your code?


#4

Hi it's beccause you delete the if statement that check for the age.
You can do that Copy all your code then click on Reset code then past your code under the one that will show up.


#5

tq i got the output....i deleted those previous lessons code so only...tnx