9/11 and



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;



if (hungry && foodHere === true)

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


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!