I'm stuck with an error



SyntaxError: Unexpected identifier

var foodDemand = function (food)// Write your foodDemand function below.
{console.log("I want to eat" + " " + food);// Last hint: In your reusable block of code, end each line
}console.log("chicken");// with a semicolon (;)


So instead of console.logging it to the screen you need to call your var foodDemand instead with the chosen food in it. So for example:



thanks man! it helped :slight_smile:


No problem! Happy coding! :smiley:


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