Code Your Own Adventure!


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

This is MY code:

" var feedback = prompt("Rate this game out of 10");
if (feedback>=8)
{ console.log("Thank you! We should race at the next concert!");
else { console.log("I will continue to practice.");
} "

These are the instructions:

Create a variable called feedback and prompt the user to rate your game out of 10.

If feedback is greater than 8, print out: "Thank you! We should race at the next concert!"

Otherwise, print out:
"I'll keep practicing coding and racing."



Here's your code:

And here's the instruction:

Make sure you respect what the instructions tell you to do.