#296
New
for in for of
Reported by Volkan Ozcelik on JavaScript: from Zero to Hero · 29/08/2018 18:20:56
- Assigned to:
- Volkan Ozcelik
- Priority:
- Normal
- Status:
- New
- 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)
Attachments
No attachment has been uploaded, yet.
Loading comments...