Javascript Reference
Categories: arguments

javascript arguments length

@March 15, 2008, 1:22 a.m.
lengthFirefox/Netscape/NN 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.


Powered by Linode.