Name
Arguments
Synopsis
arguments[n]
arguments.lengthDescription
The Arguments object is defined only within a function body, and
within every function body, the local variable arguments refers to the Arguments object for
that function. The Arguments object is an array whose elements are the
values that were passed as arguments to the function. Element 0 is the
first argument, element 1 is the second argument, and so on. All
values passed as arguments become array elements of the Arguments
object, whether or not those arguments are given names in the function
declaration.
Properties
calleeA reference to the function that is currently executing. Useful for recursion in unnamed functions. JS 1.2; JScript 5.5; ECMA v1; only defined within a function body.
lengthThe number of arguments passed to the function. JS 1.1; JScript 2; ECMA v1; only defined within a function body.
See Also
Function
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access