JavaScript Developer — Hard
Key points
- `for...in` iterates over property keys, including inherited ones
- `for...of` iterates over values of iterables using the iterator protocol
- `for...in` should not be used on arrays for value iteration
Ready to go further?
Related questions
