JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next
 

Function.arguments[] Property

Name

Function.arguments[] Property---arguments passed to a function

Availability

Navigator 2.0, Internet Explorer 3.0

Synopsis

function.arguments[i]
function.arguments.length

Description

The arguments property of a Function object is an array of the arguments that are passed to a function. arguments.length specifies the number of elements in the array. JavaScript allows any number and any type of arguments to be passed to a function, and the arguments[] array allows you to write functions that can gracefully accept a variable number of arguments.

If the function was defined with n argument names, then the first n elements in the arguments[] array may also be referenced through the defined argument names.

See Function for more details on the use of this property.

See Also

"Function"


Previous Home Next
Function Book Index Function.caller

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell
This HTML Help has been published using the chm2web software.