"You did not declare foodDemand!" /4 How does a function work?



When I put this code, it says:"Oops, try again. You did not declare foodDemand!"

// 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 = ("Korean");


@mariamariiia your problem here is when you call a function this is the syntax:


So if i implement that to your code your calling should be:


Have a Happy Early New Year!! :fireworks:


Hi. Your answer was very helpfull to me as well. Thanks