Can someone tell me where I am doing wrong


#1



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

I am getting the error problem with the syntax.
Thank you


#2

HI this line

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

you have one " more than you need the on after food


#3

thanks again @wizmarco :smile:


#4

Having a similar problem. Really stuck trying to debug. Could you maybe give a slightly more elaborate answer on this one? I wasn't able to draw a conclusion based on your answer for vytlasai. Thanks!

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

foodDemand("burger");


#5

Hi this line

var foodDemand = function(food); <--

remoe the ;