77. What is difference between `for ... of` and `forEach`
Share
We could use for...of and Array.prototype.forEach to apply functions agains elements in an array.
What is the difference?
Notice that for...of
is iterating but forEach
is not, this makes a huge difference in running async functions. This article explains very well on this.