Need help 4/13 question, STUCK NEED HELP ASAP


#1

What is wrong in that...

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

foodDemand("pizza");
Error respond:Oops, try again. There was a problem with your syntax.


#2

@timrspk,

In Javascript a semi-colon-; is an End-of-Statement indicator,
causing the rest of the statement, not being executed.
Change your

var foodDemand = function(food);

into

var foodDemand = function(food)


#3

Oh my lord, I love you so much! finally! tyvm!