SyntaxError: missing ) after argument list


#1

I can't find what the problem is. I've been stuck on this for 8 hours.

// Write your foodDemand function below.
// Last hint: In your reusable block of code, end each line
// with a semicolon (:wink:
var foodDemand = function (food) {
console.log("I want to eat + " " + food);
};
foodDemand("pizza");


#2

Oh you just forgot to end the qutation marks:

Here is your code:

and here is the fixed one

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

If it dosent work Please reply saying so, ill do my very best to help you! Thanks!


#3

thank you ! i got it now !


#4

No Problem ANy time!