Number.toSource() : toSource « Number Data Type « JavaScript Tutorial






The toSource() method gets a string representation of the Number object.

<html>
    <body>
    <script language="JavaScript">
    <!--
    var aNum = Number(21);
    document.write(aNum.toSource());
    -->
    </script>
    </body>
    </html>








5.22.toSource
5.22.1.Number.toSource()