Course lesson
For...in Loop vs. For...of Loop
Arrays can be iterated through using both for...in and for...of, but there are differences. This video shows that for...of accesses the values of each element and for...in accesses the indexes of each element.
- Duration
- 2 min
- Access
- Free
- Transcript
- Available
Arrays can be iterated through using both for...in and for...of, but there are differences. This video shows that for...of accesses the values of each element and for...in accesses the indexes of each element.