I don't know what I did wrong! Please help!


#1


I have no idea what I did wrong. Can someone please help me? Thanks!

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


My code has the error message, "Oops, try again. It looks like you didn't put quotes around the food you gave foodDemand!"


Replace this line with your code. 
var food = function(string) {
    var foodDemand = console.log("I want to eat" + " " + food);
};

foodDemand("pomegranite");


#4

Your function is supposed to be called foodDemand, and not a variable, your function's parameter should be food, you don't need to create any variables anywhere, and you just need to console.log() your sentence inside the function with the given parameter :slight_smile:

(The error message was wrong)


#5

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