3/7 of code your own adventure!


#1

What is wrong with my code
My code:
// 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("Play at your own responsibility.");
}
else
{
console.log("Play on");
}
console.log("You are at 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 starts 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

You will have to use the EXACT text as is specified in the Instructions.
I think your are missing 1 single-quote-'