Merge pull request #1651 from CyberMew/patch-10

Update solution.md
This commit is contained in:
Ilya Kantor 2019-12-02 09:56:10 +03:00 committed by GitHub
commit 7e5f960b86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,7 +13,7 @@ null === +"\n0\n" → false
Some of the reasons: Some of the reasons:
1. Obviously, true. 1. Obviously, true.
2. Dictionary comparison, hence false. 2. Dictionary comparison, hence false. `"a"` is smaller than `"p"`.
3. Again, dictionary comparison, first char of `"2"` is greater than the first char of `"1"`. 3. Again, dictionary comparison, first char of `"2"` is greater than the first char of `"1"`.
4. Values `null` and `undefined` equal each other only. 4. Values `null` and `undefined` equal each other only.
5. Strict equality is strict. Different types from both sides lead to false. 5. Strict equality is strict. Different types from both sides lead to false.