parameter vs argument in function

| Tag programming  functions 
  • A parameter is a piece of data that a function needs to run, declared as part of a function declaration. Also called a formal parameter
  • An argument is a piece of data that you passed to a function when invoking it. You can argue with the function by passing arguments when invoking.

Prev     Next