Hi, ES6 introduce the for …of loop that is for iterate over the values of an iterable object. Iterable objects is a generalization of arrays. That’s a concept that allows us to make any object useable in a for..of loop. Strings are iterables Result: Arrays are iterables Result: By Cristina Rojas
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed