I dont know what im doing wrong


var feedback = prompt("How will you rate this game?")
if (feedback <8)
console.log("Thanks for the feedback")
console.log("Thank you for the good feedback")


At the first look it looks correct to me. I will just say, don't forget the semi-colon.


it says that i need to get the feedback lower or equal to 8


should be,

if (feedback <= 8)


Great, I'm at the same problem now ... I put if (feedback <= 8) but it keeps telling me "It looks like you didn't print the greater than 8 message."
@mtf ?


Does the lesson expect this,

if (feedback >= 8) {
} else {


if (feedback <= 8) {
} else {

? What do the instructions read?


instruction : If feedback is greater than 8, print out: "Thank you! We should race at the next concert!"
it's greater than so it should be >. But I still got the same error message...


Then use the first example, above, and fill in the log statements as required:

if (feedback >= 8){
} else {


if you want to try :


Just tried, not working. :confused:


It helps to look at the lesson (blush) but it's a real tail chaser finding it, at present.

if (feedback > 8)

My d'oh!


I have exactly the same, and it make sense so I don't get what's wrong. I still have the same error message. I even tried to refresh or retyped it..


Give this a try...

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'll keep practicing coding and racing.");


It worked !! how did you do ? what did I miss ?


Hard to say. Set the condition and output strings to match the instructions? Some exercises insist upon our using the exact text provided.


interesting... ok well it s good to know, I don t give a lot of importance to what it's gonna print, as long as the code works (personally). Anyway, thanks a lot !