- Parameters are variables listed as a part of the function definition.
- Arguments are values passed to the function when it is invoked.
1 | // Basic function with three parameters that logs the sum of all the parameters |
1 | function argumentVar(parameter1, parameter2, parameter3){ |
1 | function restParam(parameter1, ...restArgs){ |