I need a help please


Replace this line with your code.


HI can you put your code and the error you get?


var hungry=true;
var foodHere=true;

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

   return "false";   


the message Oops, try again.
It looks like your function doesn't return false when hungry is false.


Remove the " " around true and false in your return statements


thank you ,it's working


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