minor fixes
This commit is contained in:
parent
689975093c
commit
f6ff773033
24 changed files with 67 additions and 76 deletions
|
@ -3,11 +3,11 @@
|
|||
```js no-beautify
|
||||
5 > 4 → true
|
||||
"apple" > "pineapple" → false
|
||||
"2" > "12" → true
|
||||
undefined == null → true
|
||||
undefined === null → false
|
||||
"2" > "12" → true
|
||||
undefined == null → true
|
||||
undefined === null → false
|
||||
null == "\n0\n" → false
|
||||
null === +"\n0\n" → false
|
||||
null === +"\n0\n" → false
|
||||
```
|
||||
|
||||
Some of the reasons:
|
||||
|
@ -17,5 +17,5 @@ Some of the reasons:
|
|||
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.
|
||||
5. Strict equality is strict. Different types from both sides lead to false.
|
||||
6. See (4).
|
||||
6. Similar to `(4)`, `null` only equals `undefined`.
|
||||
7. Strict equality of different types.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue