minor fixes
This commit is contained in:
parent
689975093c
commit
f6ff773033
24 changed files with 67 additions and 76 deletions
|
@ -74,7 +74,7 @@ alert( '2' > 1 ); // true, string '2' becomes a number 2
|
|||
alert( '01' == 1 ); // true, string '01' becomes a number 1
|
||||
```
|
||||
|
||||
For boolean values, `true` becomes `1` and `false` becomes `0`.
|
||||
For boolean values, `true` becomes `1` and `false` becomes `0`.
|
||||
|
||||
For example:
|
||||
|
||||
|
@ -138,11 +138,8 @@ The strict equality operator is a bit longer to write, but makes it obvious what
|
|||
|
||||
## Comparison with null and undefined
|
||||
|
||||
Let's see more edge cases.
|
||||
|
||||
There's a non-intuitive behavior when `null` or `undefined` are compared to other values.
|
||||
|
||||
|
||||
For a strict equality check `===`
|
||||
: These values are different, because each of them is a different type.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue