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


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?


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


thank you a lot.That helped me a lot


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