What am i missing?


#1

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

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.


#2

There shouldn't be a semicolon after the condition.


#3

that simple huh? thanks. that fixed it.