Can help


#1


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


#2

Your spelling of return here:

Also, what are you trying to do here?:

var hungry = true;
var foodHere = true;

This should suffice:

  if (hungry && foodHere)
  return true;
  else {
      return false;
  }

#3

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