JavaScript Array Methods: map() vs forEach() vs reduce() vs filter()
Javascript provides us with a couple of array methods for different purposes.
We'll be understanding some of them through code examples.
1.ForEach()
Foreach takes a callback function and runs that callback function on each element of the array one by...
aditijalaj.hashnode.dev3 min read