Indicates the number of arguments expected by the function.
arity is external to the function, and indicates how many arguments the function expects. By contrast, arguments.length provides the number of arguments actually passed to the function.
The following example demonstrates the use of arity and arguments.length.