Skip to content

Commit 5e893cf

Browse files
authored
Merge pull request #3902 from Lk-ux/patch-2
clarify wording about null and undefined equality in JS
2 parents 51bc6d3 + aa3841a commit 5e893cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,5 +212,5 @@ Why did we go over these examples? Should we remember these peculiarities all th
212212
- Comparison operators return a boolean value.
213213
- Strings are compared letter-by-letter in the "dictionary" order.
214214
- When values of different types are compared, they get converted to numbers (with the exclusion of a strict equality check).
215-
- The values `null` and `undefined` equal `==` each other and do not equal any other value.
215+
- The values `null` and `undefined` are equal `==` to themselves and each other, but do not equal any other value.
216216
- Be careful when using comparisons like `>` or `<` with variables that can occasionally be `null/undefined`. Checking for `null/undefined` separately is a good idea.

0 commit comments

Comments
 (0)