#4 Introduction to FUNCTIONS


Here my code should output "I want to eat banana". But it shows me that i have syntaxx error


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



You closed your function right at the start, you need to remove something here, then it should work.


ohhhh thanks man
I didn't notice that


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