Name

length — NN 4 IE J3 ECMA 1

Synopsis

Read-only

Returns an integer representing the number of parameters that are defined for the function. This property may be examined in a statement outside of the function, perhaps in preparation of parameters to be passed to the function. Navigator always returns a value of zero (see the arity property).

Example

var paramCount = myFunction.length

Value

Integer.

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.