I am just starting to learn programming and I am learning through codeacademy.com but I am stuck on this problem that they gave me. When I input this function like they told me to it gives me a syntax error. Any help is appreciated
// Write your foodDemand function below.
// Last hint: In your reusable block of code, end each line
// with a semicolon (;)
var foodDemand = Function("food"); {
console.log ("I want to eat" + " " + food);
};
foodDemand ("Pizza");