Help me : Comparison Operators task:3 ifElse JS


#1

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
`


#2

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


#3

Wow thanks so much! it works now


#4

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


#5

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