How do i fix this?


#1


And statements


it says that when the varible hungry is false it doesnt return false


Replace this line with your code. 
var hungry = true
var foodHere = true
var eat = function() {
  // Add your if/else statement here!
  if(true && true) {
      console.log("Lets eat!")
  }
  else {
     console.log("false")
  }
};


#2

In this lesson you need to check if foodhere and hungry are both equal..

so it will be:

if(foodHere && hungry){

also make sure your variables have semi colons at the end


#3

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