mozilla

Compare Revisions

Number.prototype.toSource()

Change Revisions

Revision 417631:

Revision 417631 by Sheppy on

Revision 481391:

Revision 481391 by fscholz on

Title:
Number.toSource
numObj.toSource()
Slug:
Web/JavaScript/Reference/Global_Objects/Number/toSource
Web/JavaScript/Reference/Global_Objects/Number/toSource
Tags:
"JavaScript", "Number", "Number Methods"
"Number", "JavaScript", "Method", "Prototype"
Content:

Revision 417631
Revision 481391
n8      {{ Non-standard_header() }}n8      {{JSRef("Global_Objects", "Number")}} {{ Non-standard_heade
 >r() }}
n16    <table class="standard-table">n
17      <thead>
18        <tr>
19          <th class="header" colspan="2">
20            Method of <a href="/en-US/docs/JavaScript/Reference/G
>lobal_Objects/Number" title="JavaScript/Reference/Global_Objects/ 
>Number"><code>Number</code></a> 
21          </th>
22        </tr>
23      </thead>
24      <tbody>
25        <tr>
26          <td>
27            Implemented in
28          </td>
29          <td>
30            JavaScript 1.3
31          </td>
32        </tr>
33        <tr>
34          <td>
35            ECMAScript Edition
36          </td>
37          <td>
38            None
39          </td>
40        </tr>
41      </tbody>
42    </table>
nn20numObj.toSource();
47number.toSource()21Number.toSource();
n59      The <code>toSource</code> method returns the following valun33      The <code>toSource()</code> method returns the following va
>es:>lues:
n62      <li>For the built-in <code>Number</code> object, <code>toSon36      <li>For the built-in <code>Number</code> object, <code>toSo
>urce</code> returns the following string indicating that the sour>urce()</code> returns the following string indicating that the so
>ce code is not available:>urce code is not available:
n69      <li>For instances of <code>Number</code>, <code>toSource</cn43      <li>For instances of <code>Number</code>, <code>toSource()<
>ode> returns a string representing the source code.>/code> returns a string representing the source code.
nn49    <h2 id="Specifications">
50      Specifications
51    </h2>
52    <p>
53      Not part of any standard. Implemented in JavaScript 1.3.
54    </p>
55    <h2 id="Browser_compatibility">
56      Browser compatibility
57    </h2>
58    <div>
59      {{CompatibilityTable}}
60    </div>
61    <div id="compat-desktop">
62      <table class="compat-table">
63        <tbody>
64          <tr>
65            <th>
66              Feature
67            </th>
68            <th>
69              Chrome
70            </th>
71            <th>
72              Firefox (Gecko)
73            </th>
74            <th>
75              Internet Explorer
76            </th>
77            <th>
78              Opera
79            </th>
80            <th>
81              Safari (WebKit)
82            </th>
83          </tr>
84          <tr>
85            <td>
86              Basic support
87            </td>
88            <td>
89              {{CompatNo}}
90            </td>
91            <td>
92              {{CompatVersionUnknown}}
93            </td>
94            <td>
95              {{CompatNo}}
96            </td>
97            <td>
98              {{CompatNo}}
99            </td>
100            <td>
101              {{CompatNo}}
102            </td>
103          </tr>
104        </tbody>
105      </table>
106    </div>
107    <div id="compat-mobile">
108      <table class="compat-table">
109        <tbody>
110          <tr>
111            <th>
112              Feature
113            </th>
114            <th>
115              Android
116            </th>
117            <th>
118              Firefox Mobile (Gecko)
119            </th>
120            <th>
121              IE Phone
122            </th>
123            <th>
124              Opera Mobile
125            </th>
126            <th>
127              Safari Mobile
128            </th>
129          </tr>
130          <tr>
131            <td>
132              Basic support
133            </td>
134            <td>
135              {{CompatNo}}
136            </td>
137            <td>
138              {{CompatVersionUnknown}}
139            </td>
140            <td>
141              {{CompatNo}}
142            </td>
143            <td>
144              {{CompatNo}}
145            </td>
146            <td>
147              {{CompatNo}}
148            </td>
149          </tr>
150        </tbody>
151      </table>
152    </div>
t79      <li>t157      <li>{{jsxref("Global_Objects/Object/toSource", "Object.prot
 >otype.toSource()")}}
80        <a href="/en-US/docs/JavaScript/Reference/Global_Objects/
>Object/toSource" title="JavaScript/Reference/Global_Objects/Objec 
>t/toSource">Object.prototype.toSource</a> 

Back to History