mozilla

Compare Revisions

Function.arity

Change Revisions

Revision 74808:

Revision 74808 by evilpie on

Revision 74809:

Revision 74809 by evilpie on

Title:
arity
arity
Slug:
JavaScript/Reference/Global_Objects/Function/arity
JavaScript/Reference/Global_Objects/Function/arity
Content:

Revision 74808
Revision 74809
n10    <h3 name="Summary">n10    <h2 name="Summary">
n12    </h3>n12    </h2>
n43    <h3 name="Description">n43    <h2 name="Description">
n45    </h3>n45    </h2>
t50      <code>arity</code> is external to the function, and indicatt50      <code>arity</code> is external to the function, and indicat
>es how many arguments a function expects. By contrast, <code><a h>es how many arguments a function expects. By contrast, <code><a c
>ref="/en/Core_JavaScript_1.5_Reference/Objects/Function/arguments>lass=" external" href="mks://localhosten/en/JavaScript/Reference/
>/length" title="en/Core_JavaScript_1.5_Reference/Objects/Function>Objects/Function/arguments/length" title="en/JavaScript/Reference
>/arguments/length">arguments.length</a></code> provides the numbe>/Objects/Function/arguments/length">arguments.length</a></code> p
>r of arguments actually passed to a function.>rovides the number of arguments actually passed to a function.
51    </p>
52    <h3 name="Examples">
53      Examples
54    </h3>
55    <h4 name="Example:_Using_arity">
56      Example: Using <code>arity</code>
57    </h4>
58    <p>
59      See example in <a href="/en/JavaScript/Reference/Global_Obj
>ects/Function/length#Example:_Using_Function.length_and_arguments 
>.length" title="en/JavaScript/Reference/Global_Objects/Function/l 
>ength#Example:_Using_Function.length_and_arguments.length">Functi 
>on.length</a> 
60    </p>
61    <h3 name="See_Also">
62      See Also
63    </h3>
64    <p>
65      <a href="/en/Core_JavaScript_1.5_Reference/Objects/Function
>/arguments/length" title="en/Core_JavaScript_1.5_Reference/Object 
>s/Function/arguments/length">arguments.length</a>, <a href="/en/J 
>avaScript/Reference/Global_Objects/Function/length" title="en/Jav 
>aScript/Reference/Global_Objects/Function/length">Function.length 
></a> 

Back to History