August 1999
Intermediate to advanced
1488 pages
72h 53m
English
function.argumentsThe arguments property of the Function object is an array that holds the arguments that are passed to a function. The number of arguments passed to a defined function can be more than the number of parameters if the arguments array is used. The arguments array can only be accessed while inside the function. Any attempt to access the arguments array outside the function will result in an error.
Listing 6.126 shows how the arguments array is used. A document.write is performed, which calls the foo function. The foo function is passed two arguments and calls the foobar function with the parameter 123. The foobar function ...
Read now
Unlock full access