Iterables and Looping

Let's have a look at the new type of loops the ES6 introduced.

The for of loop #

ES6 introduced a new type of loop, the for of loop. Let’s take a look at how it is used.

 

Iterating over an array #

Usually, we would iterate using the following method:

Get hands-on with 1200+ tech skills courses.