Please Help!


it says i have a, SyntaxError: Unexpected token

var foodDemand=function(food);
    console.log("I want to eat"+" "+food);


Try removing the semicolon on the first line.


Why do you ask a function of the same name, and each other?

That's right, where the bold:

var foodDemand = function(apple) {
console.log("I want to eat" + " " + apple);

Although just checked and your version of the code is made! Hm strange

I realized what was going on - remove the semicolon after the first line


This is an incorrect copy of the actual code posted by @gigasurfer86763


I understand, but in my case it worked


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