I need help!


#1


it is telling me that console.log isn't a function


#2

omfg... I refreshed the page by accident and it worked


#3

More than likely you accidently used "console.log = (" ... ");" or something similar to that. All it takes is refreshing the page! :smiley:


#4

I don't see how that could have been the case, as I didn't even attempt to run program until code was complete and it still gave me an error code which fixed itself and now I am stumped on this...

// Declare your variables here!
var hungry = true
var foodHere = true
var eat = function() {
// Add your if/else statement here!
if (hungry & foodHere =true) {
return true
}
else {
return false
}
};


#5

You're using the assignment operator = instead of the comparison operator(s) == or ===.