Its about functions how it works


#1

Hi guys! Please I'm stuck here and I need some help. I don't know where I'm doing wrong here but it's kind like there's a problem somewhere somehow.

These are my codes ...
var foodDemand = function (food); {
Console.log("I want to eat" + " " + food); }
foodDemand("Pizza");

My codes are behaving funny, I'm putting every code right but I don't understand it keeps on giving me the error message about my syntax that there's something wrong.


Replace this line with your code.


#2

Hi first this Line remove The ; at The end

var foodDemand = function (food); <---

Then here

Console.log("I want to eat" + " " + food); }

console should be with The downcase C

console.log()

#3

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