closes #3019
This commit is contained in:
parent
bb6667a159
commit
2daedb8c1a
2 changed files with 14 additions and 1 deletions
|
@ -355,7 +355,7 @@ In the code above, the property `obj.test` technically exists. So the `in` opera
|
|||
Situations like this happen very rarely, because `undefined` should not be explicitly 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
|
||||
## The "for..in" loop [#forin]
|
||||
|
||||
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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue