13. Map , Filter , Reduce in JS
map()
The map() method creates a new array by applying a function to each element of an existing array.
It does not modify the original array.
It returns an array of the same length as the original.
It takes callback function
//Example 1
...
rajputayush.hashnode.dev2 min read