Please help me with this excercise in "How does the funcion work"


#1


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


Oops, try again. It looks like you didn't put quotes around the food you gave foodDemand!
ReferenceError: funcion is not defined


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


#2

Hi this line

var foodDemand = funcion(food)

you wrote funcion instead of function


#3

Thanks a lot!!
I've spent a lot of time trying to figure it out... as english is not my parental language I haven't seen it at all!!
Thank you.


#4

correct the spelling of "function" instead of funcion.


#5

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