5.Did you remember to put in the 'yes' answer option?


#1

please help me if you can :blush: this is what they tell me =Oops, try again. Did you remember to put in the ‘yes’ answer option?

var userAnswer = prompt("Do you want to race Biebre 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.'")   
}

#2

Look at the code carefully…

it should by one string

For the fun
read the discussions / opinions
https://stackoverflow.com/questions/242813/when-to-use-double-or-single-quotes-in-javascript
It must be stated that Codecademy expects the double-quoted string where the single-quote is used as a literal,!


#3

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