Looping Objects using for...of Loop
The for..of loop in JavaScript allows us to iterate over iterable objects (arrays, sets, maps, strings etc).
for...of loop in array:
const names=["sheldon","Leanord","Raj","Howard"]
for ( let name of names ) {
console.log(name);
}
output:
shel...
ishita.hashnode.dev2 min read