Stocked in this code


#1


userAnswer = prompt("Do you want to race Bieber on stage?");
var userAnswer = "Yes";
if(userAnswer === "Yes")
{
console.log("You and Bieber start racing. It's neck and neck! You win by a shoelace!");
}
else // "otherwise"
{
console.log("Oh no! Bieber shakes his head and sings 'I set a pace, so I can race without pacing.'");
}

https://www.codecademy.com/en/courses/javascript-beginner-en-x9DnD/0/5?curriculum_id=506324b3a7dffd00020bf661


Replace this line with your code.


#2

This should be a prompt with a var, I believe!?

like this

var userAnswer = prompt("Do you want to race Bieber on stage?");

Remove the next line of var userAnswer


#3

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