Name
Function.length — the number of declared arguments
Synopsis
function
.
length
Description
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.
See Also
Get JavaScript: The Definitive Guide, 6th Edition 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.