No Quotation marks but I have quotation makes


#1


Introduction to functions in JS
Meet the Functions
4. How does the function work?
https://www.codecademy.com/en/courses/javascript-beginner-en-6LzGd/0/4?curriculum_id=506324b3a7dffd00020bf661#

Below is the function that I entered. I am getting a error code that states "Oops, try again. It looks like you didn't put quotes around the food you gave foodDemand!"

I am confused because my food demand is apple and I put "apple". What am I missing?

Thanks for any help!


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


#2

Got it!!

I needed to put foodDemand


#3

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