And - My Syntax Error


#1

Can someone please take a look at this code ? It's getting a problem with my syntax error - I made it through Switch's without needing help though, so woohoo :wink:

Thanks!

var hungry = true
var foodHere = true

var eat = function() {
    
 if (hungry && foodHere); {
 return true;
} else {
 return false;
}
};


#2

@lisa.jordie

There shouldn't be ; next to your closing parentheses.


#3

Thank you again, hero miniapple!