It says that there's a syntax error in my code, is there anything wrong?


#1

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


#2

you don't need semi-colons after the bacon


#3

it says "SyntaxError: Unexpected token ."


#4

You lack {} around your function.