Functions


#1

Can anybody help me.
This is my code
var foodDemand= function (food) {

console.log("I want to eat" +" " food );

};

foodDemand("meat");

and it says : SyntaxError: missing ) after argument list
whats wrong with te syntax


#2

HI this line

console.log("I want to eat" +" " food );

its missing a + before food


#3

:slight_smile:
Thanks