Need help on exercise 6


#1

My code is
// Check if the user is ready to play!
console.log("Are you ready to play?");
confirm("Yes.")
var age = prompt("What's your age?");
if (age < 13)
{
console.log("You are allowed to play, but I take no responsibility.");
}
else
{
console.log("Let's 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 the 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 win without pacing.'");
}
var feedback = prompt("Rate game, out of 10.");
if (feedback > 8)
{
console.log("Thank you! We should race at the next concert!");
}
else
{
console.log("I'll keep practicing coding and racing.");
}
It says
Oops, try again.
Your code doesn't look quite right. Check the Hint if you need help!
when I press the save and submit button.


6. Asking for feedback
#2

For future reference, read this to format your code correctly.

I copied your code exactly and I was able to submit the code and move on. Try submitting the code on a different browser than the one you are currently on.