Uhhh...syntax?


#1


Syntax Error? Can you please help correct me?


Replace this line with your code. 

var hungry===true;
var foodHere===true;

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


#2

here:

var hungry===true;
var foodHere===true;

3 equal signs means compare, do you really want to compare here?


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.