#mapJavascript
#mapMethodJavascript
#mapMethodJavascript
#javascriptMapMethod
#javascriptFunctionMap
In javascript array a special method is provided i.e map() method.
If user wants to extract individual elements from the given array then user can use for loop , while loop, for in loop and forEach loop. these loops require a good numbers of lines , insetad of these loops map() function is recommended.
The map() method will create a new array with the updated result for every values of the input array.
The map() method will call provided function or anonymous function or arrow function for every values of the input array in order.
The map() method will not change the original array , it will generate a new array.