Update solution.md - question 2

Question 2: Changing from "true" to "false"
This commit is contained in:
kitiya 2017-09-01 15:54:26 -06:00 committed by GitHub
parent 21d71c03d4
commit 11860c30c2

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 true. 2. Dictionary comparison, hence false.
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.