I can't figure out what I did wrong. It says "SyntaxError: missing before statement"


I am on "more on control flow in js ", lesson 11.
here is my code:

// 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 {
rturn false;


Any help/advice/tips anyone has to offer is IMMENSELY appreciated. Thank you VERY MUCH for your time and help.


Hi in your else statement you wrote rturn instead of return


Thanks so much. That was a dumb mistake XD