Every JavaScript function has a built-in property called arguments


Every JavaScript function has a built-in property called arguments. The arguments property is an array containing all the arguments passed to the function, indexed beginning with 0.
The arguments property also has a length property, which is the number of arguments passed to the function.