how to use the map function code example
Example 1: javascript map
The map() method creates a new array with the results of calling a provided function on every element in the calling array.
Example 2: map in python
map(function_to_apply, list_of_inputs)