11. And - Logical Operator


#1



https://www.codecademy.com/courses/javascript-beginner-en-qDwp0/2/2?curriculum_id=506324b3a7dffd00020bf661


Oops, try again. Did you declare a variable called hungry?
ReferenceError: Invalid left-hand side in assignment

I don't know what I'm doing wrong on this. It looks right to me but I know it's not. Can someone please help me with this? I would truly appreciate this.


// Declare your variables here!
var hungry = true
var foodHere = true
var eat = function() {
  // Add your if/else statement here!
  if (hungry && foodHere = true)  {
      console.log("I'm so hungry!");  }
  else (hungry &- foodHere = false)  {
      console.log("I'm am so not ready to eat.")
  }
  else if ()  {
      console.log(" ");  }
};


#2

I figured it out, do you believe it? I don't need help on this one.