#4 Introduction to FUNCTIONS


#1


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


https://www.codecademy.com/courses/javascript-beginner-en-6LzGd/0/4?curriculum_id=506324b3a7dffd00020bf661


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


foodDemand("banana");


#2

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


#3

ohhhh thanks man
I didn't notice that


#4

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