Skip to content

Commit d2cf01e

Browse files
authored
Merge pull request WTFAcademy#12 from hclj37/patch-1
format `Infinity` using inline code block
2 parents ae19720 + a1bce2b commit d2cf01e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

03_CommonTypes/readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ JavaScript 中有三个特殊数值。
3232
const nan = 0/0 // NaN
3333
```
3434

35-
2. Infinity:无穷大,表示超出上限的结果,比如 `1 / 0`
35+
2. `Infinity`:无穷大,表示超出上限的结果,比如 `1 / 0`
3636
```js
3737
const inf = 1/0 // Infinity
3838
```
3939

40-
3. -Infinity:负无穷大,表示超出下限的结果,比如 `-1 / 0`
40+
3. `-Infinity`:负无穷大,表示超出下限的结果,比如 `-1 / 0`
4141
```js
4242
const negInf = -1/0 // -Infinity
4343
```
@@ -89,4 +89,4 @@ console.log(template);
8989

9090
## 总结
9191

92-
这一讲,我们介绍了三种最常用的变量类型:数值,字符串,和布尔值。你会在之后的 JavaScript 之旅中不断和他们打交道!
92+
这一讲,我们介绍了三种最常用的变量类型:数值,字符串,和布尔值。你会在之后的 JavaScript 之旅中不断和他们打交道!

0 commit comments

Comments
 (0)