Function.length

Function.length

Specifies the number of arguments expected by the function.

Property of Function

Description

length is external to a function, and indicates how many arguments the function expects. By contrast, arguments.length is local to a function and provides the number of arguments actually passed to the function.

Example

See the example for Function.arguments.length.

See also

Function.arguments.length

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.