Function.arguments : Function Object « Function « JavaScript Tutorial






Syntax

function.arguments

The arguments property is an array that holds the arguments that are passed to a function.

The arguments array can only be accessed while inside the function.

<html>
    <body>
    <script lanuguage="JavaScript">
    <!--
    function foo(a,b) {
       foobar(123);
       document.write("Done with function foo" + "<br>");
    }
    function foobar(x) {
       document.write(foobar.arguments.length + "<br>");
       document.write(foobar.arguments.caller.b + "<br>");
    }
    document.write(foo(21,44) + "\n");
    -->
    </script>
    </body>
    </html>








7.2.Function Object
7.2.1.Function() (capital F)
7.2.2.Function.apply()
7.2.3.Function.arguments
7.2.4.Function.arity
7.2.5.Function.call()
7.2.6.Function.caller
7.2.7.Function.prototype
7.2.8.Function.toSource()
7.2.9.Function.toString()