Function syntax error


#1


https://www.codecademy.com/courses/javascript-beginner-en-6LzGd/0/4?curriculum_id=506324b3a7dffd00020bf661#


Where is the syntax error for the function?


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

foodDemand("apple")


#2

Maybe do not use the quotient marks here:

steven


#3

Thank you very much!


#4

your welcome :+1: :+1:


#5

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