JavaScript’s built-in Array.prototype.map() method creates a new array by calling a provided callback function on every element in the calling array.
Let’s write a polyfill that mimics this behavior and call it myMap().
✅ Working Solution:
const test = [1, 2, 3, 4, 5, 6, 7, 8, 8,