Function.toSource() : Function Object « Function « JavaScript Tutorial






The toSource() method can create a copy of an object.

<html>
    <body>
    <script lanuguage="JavaScript">
    <!--
        var aString = new String("This is the source");
        bString = aString.toSource();
        document.write(bString);
    -->
    </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()