Showing this error --- Did you add an if statement to your code?


#1


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

Showing this error : Did you add an if statement to your code?


Replace this line with your code.


#2

So, what is the error?


#3

userAnswer is not defined.