And in control flow


my code wont work and i need help
var hungry=true;
var foodHere=true;

var eat = function() {

  return true;}



You should add your "else" statement after the "if" statement. Address what happens if it's not true (if hungry and foodHere are not equal to each other). :slightly_smiling:


Also another } is needed to close the function.


oki thx
appreciate your help