11. And, I dont see the problem here



When I click to submit the code, it says "Oops, try again. It looks like your function doesn't return false when hungry is false" however the excersice asks for both hungry and foodHere to be true

var hungry = true&&true
var foodHere = true&&true

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

eat(hungry, foodHere)


nevermind i figured it out


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