For...of
For...of loops are used to loop through the values of iterable objects:
-Arrays
-Strings
-Maps
-Sets
-Generators
-Dome node collections
-The arguments object
For...in
For...in loops are used to loop over the properties of an object, such as object keys or array indexes.
Top comments (0)