Help me : Comparison Operators task:3 ifElse JS


Hi, does anyone knows what is the problem on the Task3: Comparison Operation?

I just write it down exactly code on task3:, is something wrong with my code?

var hungerLevel = 5;
if (hungerLevel>=7){
console.log('Time to eat ');}
else { console.log ('Let\'s eat later.')

Please help? Thanks


you forgot to add a semicolon (;) after the last parentheses.


Wow thanks so much! it works now


Sure, no problem! :slight_smile: Happy coding! :smiley:


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