Mega Code Archive

 
Categories / JavaScript Tutorial / Object Oriented
 

Object toString()

The toString() method gets a string representation of the Number object. <html>     <body>     <script language="JavaScript">     <!--     var aNum = Number(21);     document.write(aNum.toString());     -->     </script>     </body>     </html>