Why map() function important in javascript ?
: The map() method creates a new array and fills them with the value obtained by applying the given function on each original array element.
It is a non-mutating method, The map function does not change the original array elements.
Instead, it creates and stores the value in a new array.
More…??