11. AND, trouble with answer


well I am having trouble with this, not because it didn't give me an answer, but because it's answer was
[Function], not true or false, here is my code:

var hungry = true
var foodHere = true

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



HI yous should just call the function eat like that


instaed of console.log(eat);


Agree, but the function should take two arguments as well


I am not sure if it's because I need semicolon, or not, maybe after the return false, or true, or at top after variables


It says I shouldn't put in any parameters, but it worked with the calling it wrong thing, Thank you both for helping:)


no it only work with the two variable hungry and foodHere