Been stuck for a day and cannot get the right code


#1

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


#2

Hi, @zeldafreak1986

Its asking you to make a variable called foodDemand that takes one function, food.
After you need to call the variable foodDemand and add string between the brackets, so ("cake")

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

foodDemand("Cake");