js map first data as key and second as value code example
Example: javascript map
The map() method creates a new array with the results of calling a provided function on every element in the calling array.
The map() method creates a new array with the results of calling a provided function on every element in the calling array.