November 2001
Intermediate to advanced
936 pages
68h 43m
English
Function.length — the number of declared arguments
JavaScript 1.1; JScript 2.0; ECMAScript v1
function.length
The length property of a function specifies the
number of named arguments declared when the function was defined. The
function may actually be invoked with more than or fewer than this
number of arguments. Don’t confuse this property of a Function
object with the length property of the Arguments
object which specifies the number of arguments actually passed to the
function. See Arguments.length for an example.