
Arguments
JavaScript Pocket Reference
|
55
Properties & Methods
The properties and methods of an Applet object are the same as
the public fields and methods of the Java applet it represents.
JavaScript code can query and set the Java fields and invoke the
Java methods of the applet.
Arguments
the arguments of a function
Core JavaScript 1.1; JScript 2.0; ECMA v1
Synopsis
arguments[n]
arguments.length
Description
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 argu-
ments to the function. Element 0 is the first argument, element 1
is the second argument, and so on. All values passed as argu-
ments become array elements of the Arguments object, whether or
not those arguments are given names in the function declaration.
Properties
callee
A 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.
length
The number of arguments passed to the function. JS 1.1;
JScript 2; ECMA v1; only defined within a function body.
See Also
Function