Skip to content

Commit

Permalink
补充 NaN 运算规则 (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
Linho1219 authored Sep 24, 2024
1 parent 1df4272 commit 5f4a988
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/types/number.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,12 @@ NaN * 32 // NaN
NaN / 32 // NaN
```

但是,ES6 引入指数运算符(`**`)后,出现了一个例外。

```javascript
NaN ** 0 // 1
```

### Infinity

**(1)含义**
Expand Down

0 comments on commit 5f4a988

Please sign in to comment.