Home / Javascript Tips Generated By ChatGPT / Using for…of to Iterate Over Iterables in Javascript Iterate over iterable objects (including arrays, strings) using for…of. Source Code let fruits = ['apple', 'banana', 'cherry']; for (let fruit of fruits) { console.log(fruit); }