Chapter 5 Error states "did you add a if statement to your code?" I fookin did


console.log(“You are at a Justin Bieber concert, and you hear this lyric ‘Lace my shoes off, start racing.’”);
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.’”);
// Check if the user is ready to play!

confirm(“I understand confirm”)

<do not remove the three backticks above>


If your at chapter 5 you should already have 3 if/else statements in your code.


i have the same exact problem !!!


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