Asking for feedback


#1

Hey, I keep getting the same 'comment' on the task with getting a feedback which is: 'Oops, try again. It looks like you didn't print the less than or equal to 8 message.' and I totally don't get why. I've tried different combinations but it doesn't help. Could U please help me?

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 code and racing.");
}

#2

change the >= to <= that should work


#3

Actually I have copied someone's answer (with the > 8) and it worked. I checked and checked but I have no idea what was wrong. It appears to me that maybe something with spaces because I have no other idea. Thanks anyway :smile:


#4

haha i dnt know but it is cool that you are through but it would have been better if you had tried to correct your code yourself that way you will learn better . goodluck!