Am i missing something here?


#1

Here guys am i missing something here because it say you did not declare foodDemand
var foodDemand=function(food){
console.log=("I want to eat"+ ""+food);
}
foodDemand=("Sandwich");


Intro to functions in JS, lesson 4. Whats wrong?
#2

If you remove the = sign you'll be good to go.


#4

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