We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b623972 commit 790f2ecCopy full SHA for 790f2ec
docs/javascript/number.md
@@ -110,8 +110,8 @@ console.log(-Number.MAX_VALUE - 1 == -Number.MAX_VALUE); // true!
110
Values outside the range where precision is changed resolve to special values `Infinity`/`-Infinity` e.g.
111
112
```js
113
-console.log(Number.MAX_VALUE + 10**1000); // Infinity
114
-console.log(-Number.MAX_VALUE - 10**1000); // -Infinity
+console.log(Number.MAX_VALUE + 1e292); // Infinity
+console.log(-Number.MAX_VALUE - 1e292); // -Infinity
115
```
116
117
Of-course, these special infinity values also show up with arithmetic that requires it e.g.
0 commit comments