Racing


#1

Same over here:

console.log("You are at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off, start racing.'");
console.log("Suddenly, Bieber stops and says, 'Who wants to race me?'");
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.'");
}

//Oops, try again. Did you add an if statement to your code?"


Coding the Adventure with Bieber- Can't find error
#2

the exercise validates that there are two if conditions present. Your if condition from earlier exercise (which checks the users age) is missing. You should add the code from the earlier exercise to this exercise


#3

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