How does a function work?


#1


`

var foodDemand = function(food)

console.log("I want to eat"+"Pizza"+ food);

foodDemand = ("Pizza");

{
console.log("I want to eat"+"Pizza"+ food);
}

I don't know what the problem with my code is!!!!!!!!!!! Can someone help me?

`


#2

Read it carefully
https://discuss.codecademy.com/t/9-functions-with-new-parameters/32940/4?u=rcodeman


#3

3 posts were split to a new topic: How does a function work


#4