foodDemand Syntax error


#1

I cant figure out why i keep returning a syntax error, my code is listed below

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


#2

This little semi colon seems to be the bugger. Also, just to note, you don't have to put anything where pizza is in your code. That space is there to just separate your previous statement from the one that will be put in which in your case is pie.


#3

Thank you sooooo much!!!!


#4

No problem! Happy coding! :smiley:


#5

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