minor fixes

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

View file

@ -463,7 +463,7 @@ alert('0' == [] ); // false
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 `''`. 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: Then the comparison process goes on, as described in the chapter <info:type-conversions>:
```js run ```js run
// [] converted to '' // [] converted to ''