August 1999
Intermediate to advanced
1488 pages
72h 53m
English
object.toSource()
The toSource() method is used to get a string representation of the object.
Listing 6.195 shows how the toSource() is used.
<html> <body> <script language="JavaScript"> <!–– Hide // creates a new number object and then gets the string // representation of that object. var aNum = Number(21); document.write(aNum.toSource()); // End Hide ––> </script> </body> </html> |
Read now
Unlock full access