Skip to content

Commit ced239e

Browse files
authored
Update article.md
1 parent 1a527ce commit ced239e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

1-js/02-first-steps/06-type-conversions/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ alert( 1 + '2' ); // '12' (字符串在加号右边)
9191
alert( '1' + 2 ); // '12' (字符串在加号左边)
9292
```
9393
94-
这仅仅发生在其中一方为字符串(译者注:或者双方都为字符串) 的情况下。其他情况下会被转换为数字。
94+
这仅仅发生在其中一方为字符串译者注:或者双方都为字符串的情况下。其他情况下会被转换为数字。
9595
````
9696

9797
## ToBoolean
@@ -116,7 +116,7 @@ alert( Boolean("") ); // false
116116
```
117117

118118
````warn header="请注意: 包含 0 的字符串 `\"0\"``true`"
119-
一些变成语言(比如 PHP) `"0"``false`。但在 JavaScript 中,非空的字符串总是 `true`
119+
一些编程语言(比如 PHP`"0"``false`。但在 JavaScript 中,非空的字符串总是 `true`
120120

121121
```js run
122122
alert( Boolean("0") ); // true

0 commit comments

Comments
 (0)