Can someone explain to me why this is wrong?


Can anyone tell me what is wrong with this code. It is in the codecademy javascript course part 4 of the functions section

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


A function needs opening and closing brackets. like

var example= function(x) {
function body....


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.