Core JavaScript 1.5 Reference:Global Objects:Number:toSource
From MDC
Non-standard
Contents |
[edit] Summary
Returns a string representing the source code of the object.
| Method of Number | |
| Implemented in: | JavaScript 1.3 |
[edit] Syntax
number.toSource()
[edit] Parameters
None.
[edit] Description
The toSource method returns the following values:
- For the built-in
Numberobject,toSourcereturns the following string indicating that the source code is not available:
function Number() {[native code]}
- For instances of
Number,toSourcereturns a string representing the source code.
This method is usually called internally by JavaScript and not explicitly in code.