3.intro to functions


#1

Keep getting error you did not declare foodDemand. I can't see what I'm doing wrong. anyone help???

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


#3

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

this is how I wrote it. make sure to include a space in your parameter by adding " " to "I want to eat"