SYNTAX ERROR: 5. The story heats up


I need help with my syntax on lesson 5. My code is:

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


Please help!


if (userAnswer = "Yes"); // remove ;

; after if statement is a bad idea

remove that


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.