What is the difference between argument and parameter? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the difference between argument and parameter?

It's quite confusing to grasp the meaning of those two terms. I had that they can be used interchangeably but I want to know exactly their use cases. I used to know their meaning back then when I was new to coding but now their meaning somehow disappeared from my mind. If you can explain it in simple terms, it would be very helpful. Thank you!

15th Apr 2022, 11:53 AM
Abduhab Hasan
2 Answers
+ 3
Abduhab Hasan Function arguments are the real values passed to the function. during function call myFunc(c, d) c, d are arguments Function parameters are the values listed in the function's definition. like, function myFunc(a, b) { } a, b are the parameters
15th Apr 2022, 11:57 AM
NonStop CODING
NonStop CODING - avatar
0
A "parameter" is a slot in which you can put an "argument". FF9900 That's a compelling parameter that you have there! 🙃
15th Apr 2022, 12:28 PM
Lisa
Lisa - avatar