11. And


#1


https://www.codecademy.com/courses/javascript-beginner-en-qDwp0/2/2?curriculum_id=506324b3a7dffd00020bf661

Oops, try again. There was a problem with your syntax.


var hungry = true
var foodHere = true


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


#2

@bibleman13 help me!!!!!!!!!!!!


#3

SyntaxError: Unexpected token true


#4

You spelled return wrong here.


#5

and maybe try hungry == true && foodHere == true if the code still doesn't work


#6

@datfatcat helped me. all i had wrong was the spelling of return :grinning::grinning:


#7

oh ok that was how I got my version of the code to work


#8