The arguments property contains an array of input parameters which may be passed to the function. It can be used to determine how many variables are being passed in and what they are, without each argument being explicitly declared in the function.
Using the “length” property of the arguments, you can iterate through the array for each parameter passed.
1 2 3 4 5 6 7 8 9 10 11 12 13
Note that the arguments property can be preceeded by the function name i.e. myFunction.arguments.
The arguments array is especially useful with functions that can be called with a variable number of arguments, or with more arguments than they were formally declared to accept.
The callee property can only be called from within a function, when run it will return a string value of the entire function (as if you were viewing the source of the page). Note that you can also use the function.toSource() method to obtain the function source.
The arity property specifies the number of arguments the current function expected to receive. This is different to arguments.length which indicates how many actual arguments were passed in.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16