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

<do not remove the three backticks above>

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

1 Like

Wow thanks so much! it works now

1 Like

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

1 Like

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