And 11/14


#1

// Declare your variables here!
var hungry = true;
var foodHere = true;

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

}
};

I keep getting the error: SyntaxError: Unexpected keyword 'else'. I don't understand why.


#2

You got an extra bracket down there. :smiley:


#3

Where? I removed a bracket and still get the same error referring to the 'else' statement.


#4

You need a '}' before the else statement.


#5

ahhh now I see it. Thanks!