foodDemand Help


#1

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

I need help with this function


#2

Hey @iwannamakevideogames!

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

foodDemand("Popcorn");

instead of this:

Hope this helped!


#3

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

#4

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