Implement your own version of Array.prototype.map as a standalone function myMap(arr, callback). It must return a NEW array (never mutate the input) and pass (element, index, array) to the callback.
Array.prototype.map
myMap(arr, callback)
(element, index, array)
Click Run to test your code