Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
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!
2 Respostas
+ 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
0
A "parameter" is a slot in which you can put an "argument".
FF9900 That's a compelling parameter that you have there! š