Iterate through each element of a “set of elements” is a very normal operation. JavaScript provides us with a lot of methods to do that.

However, in this article, we will not fall in love with those methods. Instead, we will explore the mechanism behind it all, which are the concepts: iterable, iterator, generator.

#js #programming #javascript

Explore the concepts: iterable, iterator, Generators
1.30 GEEK