11. And. Please help


#1



Any advice, I've got no idea as to what's wrong. Thanks

https://www.codecademy.com/courses/javascript-beginner-en-qDwp0/2/2?curriculum_id=506324b3a7dffd00020bf661


Oops, try again.
It looks like your function doesn't return false when hungry is false.


// Declare your variables here!
var hungry=true;
var foodHere=true;
var eat = function() {
    if (hungry&&foodHere===true){
        return ("true");
        
    } else {
        return ("false");
    };
};
eat()


#2

you return false as a string:

return("false");

you should return false as a Boolean:

return(false);

same for true


#3

Thank you.:slight_smile: