Introduction to Functions: 4


So, I couldn't get past this chapter and I can't seem to get the answer.
here's my code.

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

I keep getting the "SyntaxError: missing ) after argument list" message

any help would be helpful!


console.log() is missing its closing bracket ()), the closing bracket at thend of your line is for food, not of console.log, at another closing bracket


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


no space between the function(value)

@azumacchi here is also an example I made in jsbin

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



Hi there and thank you for the answer. I tried putting in the closing bracket and the error this time changed to "RangeError: Maximum call stack size exceeded"


Seems i missed something, see benjnev his answer


It finally worked! Thank you so much for your help!


It worked already. Thank you for help help as well!