I need help!


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


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


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


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


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