August 1999
Intermediate to advanced
1488 pages
72h 53m
English
arguments.length
The length property of the Arguments object contains the number of arguments that were passed into the function to which the Argument object is associated. If less arguments are passed in than are specified in the definition of the function, the length property will only contain the number of arguments passed into the function. This number matches the number of elements in the arguments array associated with the Argument object.
In Listing 6.46, the length property of the Argument object is used to process any number of arguments passed into the displayFood() function.
Read now
Unlock full access