Asking For Feedback


#1

// Check if the user is ready to play!
confirm("you are ready");
var age=prompt("What's your age");
if(age<13)
{
console.log("You are allowed to play");
}
else
{
console.log("Game on!");
}
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 shoelace!");
}
else
{
console.log("Oh no! Bieber shakes his head and sings 'I set a pace, so I can race without pacing.'");
}
var Feedback = prompt("What would you rate this game on a scale of 1-10 with 10 being the best?");
if(Feedback>=8) {
console.log("Thank you! We should race at the next concert!");
} else {
console.log("I'll keep practicing coding and racing.")
}

Oops, try again. Did you declare a variable called feedback?

Please tell me if there's anyway to fix this please! Thank you!


#2

It's case-sensitive. Your variable is "Feedback", but it's looking for a variable named "feedback".


#3

Thank you! I'll remember that for the next time it tells me to create a variable