What are Iterables in JavaScript?
Iterables give the ability for a JS object to be iterated and to be used in a 'for of' loop.
A typical use case for a 'for of' loop is when looping across an array.
const arr = [1,2,3,4,5]
for(let num of arr){
console.log(num);
}
However, we ca...
chirath.hashnode.dev5 min read