What is the purpose of the word food in the parenthesis?


I understand that you are supposed to put quotations around empty space as seen in the following:

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

I'm not sure exactly what the purpose of the word food is though? Is this necessary?


Yes it is, it is the parameter of your function. You might review that concept as it is really important.


Ok, I thought the parameter was set already at the beginning of the function, but I will certainly review. Thank you.


Yes exactly and the reason you set it there is to use it later e.g. in this statement :smile: