Mega Code Archive

 
Categories / JavaScript Tutorial / Object Oriented
 

Object toSource()

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