I need help with an issue I cant seem to solve myself


#1

I have no Idea what I am doing wrong on this it keeps giving me an error saying that I did not put quotes around the food I called foodDemand?

Here is my current code:

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

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

Here is the error that keeps popping up:

Oops, try again. It looks like you didn't put quotes around the food you gave foodDemand!


#2

this part of code is wrong, just remove it.(part 2, when you call the function.)


#3

Wow, that was simple enough. Thanks alot firstboy000!!!