4 -=- Did not declare foodDemand? -=-


#1

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

foodDemand = ("McDonalds!");

ERROR: "Oops, try again. You did not declare foodDemand!"


#2

This is not how you call a function,

Remove the = sign and write it as is,

foodDemand("McDonalds!");


#3

Thanks! Darn Syntax. I need to learn this stuff ;-;


#4

Lol the worst errors in programming are the smallest ones! :smile:

Happy Coding!


#5

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