foodDemand Help


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

I need help with this function


Hey @iwannamakevideogames!

When you call it remember last time. You call it like this:


instead of this:

Hope this helped!


I see what you're thinking, but calling a function and initiating a function are two different things.

var foodDemand = function(food){ //initiate the function

foodDemand("Popcorn"); //Call the function


thanks I was thinking of how I did greeting(name); and if I should do it for this but as foodDemand that was at the start. After I got to the last part I completely forgot about it