Part 6. asking for feedback


Please take a glance I am quite confused here.

Oops, try again. It looks like you didn't print the less than or equal to 8 message.


Replace this line with your code.

// Check if the user is ready to play!

confirm("are you ready to play?");

var age = prompt("whats your age");
var userAnswer = prompt("Do you want to race Bieber on stage?");
var feedback = prompt("rate the game from 1 to 10");

if (age > 13)
console.log("you are allowed to play");
console.log("you are too young");

if (userAnswer === "yes")
    console.log("You and Bieber start racing. It's neck and neck! You win by a shoelace!");

console.log("Oh no! Bieber shakes his head and sings 'I set a pace, so I can race without pacing.'")

if (feedback >= 8)
console.log("thank you dear!!!")
else {
console.log("I will practicew my code. I promise!")

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?'")


Your strings should be an exact match to the instructions and this one has a typo,

should be,

"I'll keep practicing coding and racing."


Thank you so much!
I didn't realize we need to copy the string exactly....I really appreciate
your help! thank you



Happy to help! :grin:


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.