Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a1257db

Browse files
authored
clarify wording about null and undefined equality in JS
1 parent 51bc6d3 commit a1257db

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 to 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)

AltStyle によって変換されたページ (->オリジナル) /