Name
Arguments Object — access to function parameters and the current function
Availability
Flash 5
Synopsis
arguments[elem] arguments.propertyName
Properties
- callee
A reference to the function being executed.
- length
The number of parameters passed to the function being executed.
Description
The Arguments object is stored in the local
arguments variable of every function and is
accessible only while a function is executing.
Arguments is both an array and an object. As an
array, arguments stores the values of the
parameters passed to the currently executing function. For example,
arguments[0] is the first passed parameter,
arguments[1] is the second passed parameter, and
so on. As an object, Arguments stores the
callee property, which can be used to identify or
invoke the current function.
See Also
“The arguments Object” in Chapter 9
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