Help me!


#1


why it is wrong ???


#2

You'll have to explain what you mean by "wrong"! (generally not a useful term, along with "work" as they just say "does (not) do what I want" without saying what that is)

Identifying the problem is also how you start solving it, both increasing the chance that you fix it yourself and showing that you've tried to do so.

If you're unable to identify the problem, then you'll have to explain what the perceived problem is and ask about how to approach it.


#3

ok .. i don’t know what the problem is so i ask anyone to help me :slight_smile:
whatever this message is what i saw every time i run the code


#4

That error message begs the question of: did you print something?

If yes, then perhaps it wasn't quite right
If no, then you'll have to investigate how to print something and how that differs from what you wrote


#5

In this case, You have to call a function when it is outside of the function.

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

foodDemand("apple");

Hope it helps.


#6

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