Save & Submit Code Reset Code Oops, try again. Did you add an if statement to your code?


#1
console.log("Suddenly, Bieber stops and says, 'Who wants to race me?'")

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

Hey @liveapp

Can you please ask a question and add more details? What specifically do you need help with? Also, please limit the title character count. I have edited it down, but it may not portray what you wanted -- so feel free to edit.

Thank you,
AlexB
-Codecademy Community Manager


#3

I think you forgot to state that userAnswer is a variable. I also wonder if the semicolons after console log are necessary?

To fix the variable problem, just add var before the first userAnswer.

Hope I helped!