fix a typo

This commit is contained in:
qianguyihao
2019-07-28 20:21:14 +08:00
parent d333f8bf85
commit 0961a7893f
2 changed files with 2 additions and 3 deletions

View File

@@ -427,7 +427,6 @@ console.log("56" > "123"); // true
**因此**:当我们在比较两个字符串型的数字时,**一定一定要先转型**,比如 `parseInt()`
3任何值和NaN做任何比较都是false。
### `==`符号的强调
@@ -447,7 +446,7 @@ console.log("56" > "123"); // true
console.log(true == "1"); // 打印结果true
console.log(0 == -0); // 打印结果true
console.log(null == 0); // 打印结果:true
console.log(null == 0); // 打印结果:false
```
3undefined 衍生自 null所以这两个值做相等判断时会返回true。