Functions in Javascript


#1

Hi

I'm stuck on Unit 2 lesson 4 of 'Introduction to Functions JS'.
It keeps telling me that I'm not declaring my function but I'm using the 'var' command!!!


#2

Hi you should call you function like that

foodDemand()

And write you food inside the () like that

foodDemand("coconut")

#3

Thank you very much!!