This commit is contained in:
Ilya Kantor 2019-07-24 11:09:03 +03:00
parent 0ade414c7c
commit 03560a7f03

View file

@ -342,7 +342,6 @@ In the code above, the property `obj.test` technically exists. So the `in` opera
Situations like this happen very rarely, because `undefined` is usually not assigned. We mostly use `null` for "unknown" or "empty" values. So the `in` operator is an exotic guest in the code.
````
## The "for..in" loop
To walk over all keys of an object, there exists a special form of the loop: `for..in`. This is a completely different thing from the `for(;;)` construct that we studied before.
@ -531,7 +530,7 @@ The equality `==` and strict equality `===` operators for objects work exactly t
**Two objects are equal only if they are the same object.**
For instance, two variables reference the same object, they are equal:
For instance, if two variables reference the same object, they are equal:
```js run
let a = {};