What is wrong?


#1


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

Oops, try again.
Did you remember to put in the 'yes' answer option?


confirm("Are you ready to play?")
var age = prompt("What's your age?")
if (age < 13){
    console.log("Sorry but this game requires you to be a bit older.")
}
else{
    console.log("Please continue to play!!!")  
}
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 = confirm("Do you want to race Bieber on stage?")

if (userAnswer === "yes"){
    console.log("You are at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off, start racing.'")    
}
else{
    console.log("Oh no! Bieber shakes his head and sings 'I set a pace, so I can race without pacing.'")
}


#2

Your var userAnswer should be a prompt, not confirm. Make sense?


#3

You are forgetting all of your ending semicolons.