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


#1

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?


#2

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


#3

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


#4

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