Skip to content

Commit 5f4a988

Browse files
authored
补充 NaN 运算规则 (#283)
1 parent 1df4272 commit 5f4a988

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/types/number.md

+6
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,12 @@ NaN * 32 // NaN
280280
NaN / 32 // NaN
281281
```
282282

283+
但是,ES6 引入指数运算符(`**`)后,出现了一个例外。
284+
285+
```javascript
286+
NaN ** 0 // 1
287+
```
288+
283289
### Infinity
284290

285291
**(1)含义**

0 commit comments

Comments
 (0)