javascript arguments length

lengthNN 3 IE 4 ECMA 1  

Read-only  

Returns the number of arguments passed to the function in its current invocation. The number is not influenced by the number of parameter variables defined for the function.

 
Example
 
function myFunc( ) {
    for (var i = 0; i < arguments.length; i++) {
        ...
    }
}
 
Value

Integer.


265,Nickname,Homepage or email,Comments here,Add comment