Get function parameter length : arguments « Function « JavaScript Tutorial






<html>
<head>
<title>Try Catch Example</title>
<script type="text/javascript">
function addTwoNumbers(a, b) {
    alert(arguments.length);
}

var result = addTwoNumbers(90);

</script>
</head>
<body>
</body>
</html>








7.4.arguments
7.4.1.arguments
7.4.2.arguments.callee
7.4.3.arguments.caller
7.4.4.arguments.length
7.4.5.Use arguments.callee.toString() to get the source of the function
7.4.6.Accessing Function Arguments with the arguments Array
7.4.7.Get function parameter length