Skip to content

Commit 9c91125

Browse files
committed
Math,Number,Object,RegExp,String,Undefined update to .html spec instead of .pdf version
1 parent a806838 commit 9c91125

7 files changed

Lines changed: 143 additions & 140 deletions

File tree

content/JavaScript/math.jsdoc

Lines changed: 27 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ Math : Object
33
Contains math related constants and functions.
44

55
Spec:
6-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=171
7-
6+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.8
87

98
----
109
E : Number
@@ -16,7 +15,7 @@ console.log(Math.E);
1615
</example>
1716

1817
Spec:
19-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=171
18+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.8.1.1
2019

2120
ReadOnly:
2221
true
@@ -42,7 +41,7 @@ console.log(log10(10000));
4241
</example>
4342

4443
Spec:
45-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=171
44+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.8.1.2
4645

4746
ReadOnly:
4847
true
@@ -68,7 +67,7 @@ console.log(log2(64));
6867
</example>
6968

7069
Spec:
71-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=171
70+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.8.1.3
7271

7372
ReadOnly:
7473
true
@@ -94,7 +93,7 @@ console.log(log2(32));
9493
</example>
9594

9695
Spec:
97-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=171
96+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.8.1.4
9897

9998
ReadOnly:
10099
true
@@ -120,7 +119,7 @@ console.log(log10(10000));
120119
</example>
121120

122121
Spec:
123-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=172
122+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.8.1.5
124123

125124
ReadOnly:
126125
true
@@ -135,7 +134,7 @@ console.log(Math.PI);
135134
</example>
136135

137136
Spec:
138-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=172
137+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.8.1.6
139138

140139
ReadOnly:
141140
true
@@ -151,7 +150,7 @@ console.log(1 / Math.sqrt(2));
151150
</example>
152151

153152
Spec:
154-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=172
153+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.8.1.7
155154

156155
ReadOnly:
157156
true
@@ -167,7 +166,7 @@ console.log(Math.sqrt(2));
167166
</example>
168167

169168
Spec:
170-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=172
169+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.8.1.8
171170

172171
ReadOnly:
173172
true
@@ -184,7 +183,7 @@ console.log(Math.abs(-10));
184183
</example>
185184

186185
Spec:
187-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=172
186+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.8.2.1
188187

189188
----
190189
acos(x : Number) : Number
@@ -205,7 +204,7 @@ console.log(acosDegrees(0));
205204
</example>
206205

207206
Spec:
208-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=173
207+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.8.2.2
209208

210209
----
211210
asin(x : Number) : Number
@@ -225,9 +224,8 @@ var asinDegrees = function(x) {
225224
console.log(asinDegrees(1));
226225
</example>
227226

228-
229227
Spec:
230-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=173
228+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.8.2.3
231229

232230
----
233231
atan(x: Number) : Number
@@ -248,7 +246,7 @@ console.log(atanDegrees(1));
248246
</example>
249247

250248
Spec:
251-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=173
249+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.8.2.4
252250

253251
----
254252
atan2(y : Number, x : Number) : Number
@@ -271,7 +269,7 @@ console.log(atan2Degrees(1, 0));
271269
</example>
272270

273271
Spec:
274-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=173
272+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.8.2.5
275273

276274
----
277275
ceil(x: Number) : Number
@@ -287,9 +285,7 @@ console.log(Math.ceil(-1.9));
287285
</example>
288286

289287
Spec:
290-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=174
291-
292-
288+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.8.2.6
293289

294290
----
295291
cos(x: Number) : Number
@@ -310,7 +306,7 @@ console.log(cosDegrees(45));
310306
</example>
311307

312308
Spec:
313-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=174
309+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.8.2.7
314310

315311

316312
----
@@ -326,7 +322,7 @@ console.log(Math.E * Math.E);
326322
</example>
327323

328324
Spec:
329-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=174
325+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.8.2.8
330326

331327
----
332328
floor(x: Number) : Number
@@ -342,7 +338,7 @@ console.log(Math.floor(-1.9));
342338
</example>
343339

344340
Spec:
345-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=174
341+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.8.2.9
346342

347343

348344
----
@@ -375,7 +371,7 @@ console.log(log10(10000));
375371
</example>
376372

377373
Spec:
378-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=175
374+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.8.2.10
379375

380376

381377
----
@@ -389,7 +385,7 @@ console.log(Math.max(x, y, z));
389385
</example>
390386

391387
Spec:
392-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=175
388+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.8.2.11
393389

394390

395391
----
@@ -403,7 +399,7 @@ console.log(Math.min(x, y, z));
403399
</example>
404400

405401
Spec:
406-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=175
402+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.8.2.12
407403

408404

409405
----
@@ -416,7 +412,7 @@ console.log(Math.pow(2, 3));
416412
</example>
417413

418414
Spec:
419-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=175
415+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.8.2.13
420416

421417

422418
----
@@ -439,7 +435,7 @@ console.log(randomInt(0, 100));
439435
</example>
440436

441437
Spec:
442-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=176
438+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.8.2.14
443439

444440

445441
----
@@ -456,7 +452,7 @@ console.log(Math.round(-2.5));
456452
</example>
457453

458454
Spec:
459-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=176
455+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.8.2.15
460456

461457

462458
----
@@ -478,7 +474,7 @@ console.log(sinDegrees(45));
478474
</example>
479475

480476
Spec:
481-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=176
477+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.8.2.16
482478

483479

484480
----
@@ -493,7 +489,7 @@ console.log(Math.sqrt(100));
493489
</example>
494490

495491
Spec:
496-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=176
492+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.8.2.17
497493

498494
----
499495
tan(x : Number) : Number
@@ -514,5 +510,5 @@ console.log(tanDegrees(45));
514510
</example>
515511

516512
Spec:
517-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=177
513+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.8.2.18
518514

content/JavaScript/number.jsdoc

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Primitive:
77
true
88

99
Spec:
10-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=166
10+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.7
1111

1212
----
1313
Number(value : Object) : Number
@@ -28,7 +28,7 @@ console.log(+one + 2); // another way to convert to a number
2828
</example>
2929

3030
Spec:
31-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=166
31+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.7.1.1
3232

3333

3434
----
@@ -46,7 +46,7 @@ console.log(boxed.foo);
4646
</example>
4747

4848
Spec:
49-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=166
49+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.7.2.1
5050

5151

5252
----
@@ -63,7 +63,7 @@ console.log(x.toExponential(6));
6363
</example>
6464

6565
Spec:
66-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=169
66+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.7.4.6
6767

6868

6969
----
@@ -80,7 +80,7 @@ console.log(x.toFixed(6));
8080
</example>
8181

8282
Spec:
83-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=168
83+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.7.4.5
8484

8585

8686
----
@@ -98,7 +98,7 @@ console.log(x.toPrecision(4));
9898
</example>
9999

100100
Spec:
101-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=170
101+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.7.4.7
102102

103103

104104
----
@@ -113,7 +113,7 @@ console.log(x.toString(16));
113113
</example>
114114

115115
Spec:
116-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=167
116+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.7.4.2
117117

118118

119119
----
@@ -128,33 +128,34 @@ console.log(x.toString());
128128
console.log(x.toLocaleString());
129129
</example>
130130

131-
132131
Spec:
133-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=168
132+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.7.4.3
134133

135134
----
136135
MAX_VALUE : Number
137136

138-
The largest possible Number less than infinity.
137+
The largest possible Number less than infinity that can be represented in
138+
JavaScript.
139139

140140
<example>
141141
console.log(Number.MAX_VALUE);
142142
</example>
143143

144144
Spec:
145-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=166
145+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.7.3.2
146146

147147
----
148148
MIN_VALUE : Number
149149

150-
The smallest possible Number greater than 0.
150+
The smallest possible Number greater than 0 that can be represented in
151+
JavaScript.
151152

152153
<example>
153154
console.log(Number.MIN_VALUE);
154155
</example>
155156

156157
Spec:
157-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=166
158+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.7.3.3
158159

159160
----
160161
NaN : Number
@@ -173,7 +174,7 @@ console.log(Math.sqrt(-1));
173174

174175

175176
Spec:
176-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=167
177+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.7.3.4
177178

178179

179180
----
@@ -188,7 +189,7 @@ console.log(-1/0);
188189
</example>
189190

190191
Spec:
191-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=167
192+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.7.3.5
192193

193194
----
194195
POSITIVE_INFINITIY : Number
@@ -204,5 +205,5 @@ console.log(1/0);
204205
</example>
205206

206207
Spec:
207-
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf#page=167
208+
http://www.ecma-international.org/ecma-262/5.1/#sec-15.7.3.6
208209

0 commit comments

Comments
 (0)