Skip to content

Commit d7834f2

Browse files
author
Azaldin Freidoon
committed
Fixed an error in the 'An incomparable undefined' section. The value 'undefined' is not only equal to 'null', but to 'undefined' as well.
1 parent f651e96 commit d7834f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/02-first-steps/08-comparison/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ Why does it dislike zero so much? Always false!
193193
We get these results because:
194194

195195
- 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.
196-
- The equality check `(3)` returns `false` because `undefined` only equals `null` and no other value.
196+
- The equality check `(3)` returns `false` because `undefined` only equals `null`, `undefined`, and no other value.
197197

198198
### Evade problems
199199

0 commit comments

Comments
 (0)