It shows me an error even tho i dont have any mistakes 5/11


#1

let hungerLevel = 5;

if (hungerLevel < 7) {

console.log(“Time to eat!”);
}

else {

console.log(“We can eat later!”);
}

Did you create an ‘if/else’ statement and check if hungerLevel is greater than 7?


#2

you check if hunger level is lesser then 7, this doesn’t match with instructions


#3

thank you a lot.That helped me a lot


#4

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