Question: what is the difference between parameter and argument in javascript?
Answer: When talking about functions, the terms parameters and arguments are often interchangeably used as if it were one and the same thing but there is a very subtle difference. Parameters are variables listed as a part of the function definition. Arguments are values passed to the function when it is invoked.