I've been going over a few array methods to refresh some of them and this is one thing I've never fully grasped. There are for of loops and for in what is the use case for these?
In addition, you also have forEach what are the key differences? Is it performance or personal preference? I don't really understand the difference between them could someone point me in the right direction?
The for and for/in looping constructs give you access to the index in the array, not the actual element.
With forEach() and for/of, you get access to the array element itself.
Note: