hullo.
what exactly is wrong with these lines of code? It just won’t print.
let hungerLevel = 5;
if hungerLevel>7{
console.log(“Time to eat!”);
}
else {
console.log(“we can eat later!”);
}
hullo.
what exactly is wrong with these lines of code? It just won’t print.
let hungerLevel = 5;
if hungerLevel>7{
console.log(“Time to eat!”);
}
else {
console.log(“we can eat later!”);
}
Hint: check for your missing brackets.
Look back the syntax of writing an if/else statement.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.