Section 4


#1

What is wrong in my code?

var foodDemand = function (food) {
console.log("Quero comer" + " " + food);

foodDemand ("chocolate");

};


#2

The correct is:

var foodDemand = function (food) {
console.log("Quero comer" + " " + food);

};

foodDemand ("chocolate");

// the same way of the past exercise.