minor fixes

This commit is contained in:
Ilya Kantor 2020-09-24 23:00:02 +03:00
parent e4c928ba2d
commit 2d63151779

View file

@ -461,7 +461,7 @@ alert( 0 == [] ); // true
alert('0' == [] ); // false
```
Here, in both cases, we compare a primitive with an array object. So the array `[]` gets converted to primitive and becomes an empty string `''`.
Here, in both cases, we compare a primitive with an array object. So the array `[]` gets converted to primitive for the purpose of comparison and becomes an empty string `''`.
Then the comparison process goes on: