arguments
is a special variable passed to all functions so that actual parameters are accessible even when they are not declared as formal parameters.
In most cases, arguments
is an alias name for formal parameters.
Here’s how it goes interesting.
When an actual parameter is not passed to the function, its behavior is not exactly the same as passing an undefined
. A more profound explanation under the hood should be given once I knew more about JavaScript.