I dont know what im doing wrong


#1

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


#2

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


#3

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


#4

should be,

if (feedback <= 8)

#5

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 ?


#6

Does the lesson expect this,

if (feedback >= 8) {
} else {
}

or,

if (feedback <= 8) {
} else {
}

? What do the instructions read?


#7

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


#8

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

if (feedback >= 8){
    console.log();
} else {
    console.log();
}

#9

if you want to try :

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

Just tried, not working. :confused:


#10

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!


#11

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


#12

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

#13

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


#14

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


#15

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 !