arguments and parameters

In programming, when we call a function, we often want to supply it with input that will affect its output.

function logValue (value) {
  console.log(value)
}
logValue(10)

In the above example, the value 10 passed in as the input to the function is called an argument.

But the value in the function definition at the top is called a parameter.

References

argument A value provided as input to a function. parameter A variable identifier provided as input to a function.

https://press.rebus.community/programmingfundamentals/chapter/parameters-and-arguments/

‘You define parameters, and you make arguments.’

Parameter is variable in the declaration of function.

Argument is the actual value of this variable that gets passed to function.

https://stackoverflow.com/questions/156767/whats-the-difference-between-an-argument-and-a-parameter

#programming #review