Where am I going wrong?


#1



I get an error message that says "Oops, try again. Did you remember to put in the 'yes' answer option?" I'm pretty sure all the syntax is right, and the answer changes depending on the answer I give.


// Check if the user is ready to play!
confirm("I am ready to play!")

var age = prompt("What's your age?")

if
(age < 13)
{
    console.log("You can play, but I take no responsibility.")
}
else
{
    console.log("Please 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 = 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 shoe lace!");
}
else
{
    console.log("Oh no! Bieber shakes his head and sings 'I set a pace, so I can race without pacing.'");
}


#2

Hi,

Try changing Yes to yes

Hope this helps!


#3

That did not help unfortunately, thanks though!


#4

"You and Bieber start racing. It's neck and neck! You win by a shoelace!"

See the difference in shoelace and shoe lace That'c causing the error


#5

It was as well, thanks buddy!


#6

You're welcome!

Happy coding & learning :green_book:


#7