16bugs JavaScript: from Zero to Hero
Log in

JavaScript: from Zero to Hero

#296 for in for of

Reported by Volkan Ozcelik · 29 Aug 2018, 18:20

Status
New
Priority
Normal
Assigned to
Volkan Ozcelik
Category
Lessons
Version
None

In Javascript, the difference between for-in and for-of loops is about the data they iterate over:

- For-in iterates over enumerable objects (like Objects)

- For-of iterates over iterable objects (like string and arrays)

History

29 Aug 2018, 18:20Volkan Ozcelik submitted the bug