9/11 and


#1

Hello,

For some reason I am not able to move forward from this lesson. I have followed the instructions word for word.

Please let me know why I am getting an error "Did you set hungry equal to true?" and on the console "ReferenceError: invalid assignment left-hand side"

var hungry = true;
var foodHere = true;

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

};


#2

if (hungry && foodHere === true)

You forgot to use === instead of = in your if/else statement.


#3

Thank you, I actually figured it out and was coming back to notate my findings. I really appreciate you taking the time to help me!