I'm lost, please help!


#1

var hungry = true;
var foodHere = true;

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


#2

@captain_oblivious you need to call your eat function. Once you do, it will return true.


#3

I Fixed it shortly after i posted this, I needed to call the function. And remove the quotes around true/false
var hungry = true;
var foodHere = true;

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