ES6 – for…of

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