3.intro to functions


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);


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

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