Part 6. asking for feedback


#1


Please take a glance I am quite confused here.


https://www.codecademy.com/courses/javascript-beginner-en-x9DnD/0/6?curriculum_id=506324b3a7dffd00020bf661#

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");
}
else
{
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!");
}

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


#2

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."


#3

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

Leyla


#4

Happy to help! :grin:


#5

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