Skip to content

Commit dde3c1a

Browse files
authored
Added for and for..of
... as ways to iterate over arrays
1 parent d9ee6e3 commit dde3c1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/05-data-types/05-array-methods/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ alert( str ); // Bilbo;Gandalf;Nazgul
520520

521521
### reduce/reduceRight
522522

523-
When we need to iterate over an array -- we can use `forEach`.
523+
When we need to iterate over an array -- we can use `forEach`, `for` or `for..of`.
524524

525525
When we need to iterate and return the data for each element -- we can use `map`.
526526

0 commit comments

Comments
 (0)