Can someone explain to me why this is wrong?


#1

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


#2

A function needs opening and closing brackets. like

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


#3

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