Fixed an error in the 'An incomparable undefined' section. The value 'undefined' is not only equal to 'null', but to 'undefined' as well.
This commit is contained in:
parent
f651e963d7
commit
d7834f29e8
1 changed files with 1 additions and 1 deletions
|
@ -193,7 +193,7 @@ Why does it dislike zero so much? Always false!
|
||||||
We get these results because:
|
We get these results because:
|
||||||
|
|
||||||
- Comparisons `(1)` and `(2)` return `false` because `undefined` gets converted to `NaN` and `NaN` is a special numeric value which returns `false` for all comparisons.
|
- Comparisons `(1)` and `(2)` return `false` because `undefined` gets converted to `NaN` and `NaN` is a special numeric value which returns `false` for all comparisons.
|
||||||
- The equality check `(3)` returns `false` because `undefined` only equals `null` and no other value.
|
- The equality check `(3)` returns `false` because `undefined` only equals `null`, `undefined`, and no other value.
|
||||||
|
|
||||||
### Evade problems
|
### Evade problems
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue