_map_: Iterate an array elements and modify the array elements. It takes a callback function with elements and index parameter and return a new array.
_map_: Iterate an array elements and modify the array elements. It takes a callback function with element,index,array parameter and return a new array.
> It is a good practice to define an initial value for the accumulator value.
**Reduce** also has a second _optional_ parameter for _accumulator default value_.
If we do not specify this parameter, by default accumulator will get array `first value`. If our array is an _empty array_, then `Javascript` will throw an error.