Help! javascript not working


#1

my code:

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

Always says "You didn't print anything on the screen"


#2

Correct code:

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

#3

Looks like i had the same problem too :smile:. You answered us both cadecodes :wink: