We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a527ce commit ced239eCopy full SHA for ced239e
1 file changed
1-js/02-first-steps/06-type-conversions/article.md
@@ -91,7 +91,7 @@ alert( 1 + '2' ); // '12' (字符串在加号右边)
91
alert( '1' + 2 ); // '12' (字符串在加号左边)
92
```
93
94
-这仅仅发生在其中一方为字符串(译者注:或者双方都为字符串) 的情况下。其他情况下会被转换为数字。
+这仅仅发生在其中一方为字符串(译者注:或者双方都为字符串)的情况下。其他情况下会被转换为数字。
95
````
96
97
## ToBoolean
@@ -116,7 +116,7 @@ alert( Boolean("") ); // false
116
117
118
````warn header="请注意: 包含 0 的字符串 `\"0\"` 是 `true`"
119
-一些变成语言(比如 PHP) 视 `"0"` 为 `false`。但在 JavaScript 中,非空的字符串总是 `true`。
+一些编程语言(比如 PHP)视 `"0"` 为 `false`。但在 JavaScript 中,非空的字符串总是 `true`。
120
121
```js run
122
alert( Boolean("0") ); // true
0 commit comments