[Chapter 21] Reference: Function.arguments[]
Author: David Flanagan
Date: Fri Aug 29 11:16:13 1997

#

| Chapter 21 JavaScript Reference |

# 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"

Function |  | Function.caller