I do not understand the solution provided in the guide. Specifically:
newArray.push(callback(this[i], i, this));
According to MDN the Array.prototype.push() adds an element, or elements to the end of the array. The solution has 3 arguments in the push statement, which suggests, that it is adding 3 elements to the new array. but, it is only adding 1 element. What am I missing here???
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.96.36.199 Safari/537.36
Challenge: Functional Programming - Implement map on a Prototype