What am i missing?


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

it is telling me "SyntaxError: Unexpected token else". i have gone through a lot of the other topics and the ones that look correct or are correct look like mine. i cant figure it out.


There shouldn't be a semicolon after the condition.


that simple huh? thanks. that fixed it.