Skip to content

Commit 790f2ec

Browse files
authored
Update number.md
1 parent b623972 commit 790f2ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/javascript/number.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ console.log(-Number.MAX_VALUE - 1 == -Number.MAX_VALUE); // true!
110110
Values outside the range where precision is changed resolve to special values `Infinity`/`-Infinity` e.g.
111111

112112
```js
113-
console.log(Number.MAX_VALUE + 10**1000); // Infinity
114-
console.log(-Number.MAX_VALUE - 10**1000); // -Infinity
113+
console.log(Number.MAX_VALUE + 1e292); // Infinity
114+
console.log(-Number.MAX_VALUE - 1e292); // -Infinity
115115
```
116116

117117
Of-course, these special infinity values also show up with arithmetic that requires it e.g.

0 commit comments

Comments
 (0)