What is wrong with my code?



Unexpected token else.

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.' ");


this line:

if(userAnswer === "yes");

the semi-colon prevents the if clause from working properly, causing problems with else. Remove the semi-colon


Thanks so much :slight_smile: I really appreciate it, my code works now