I couldnt figure this out my code is as follows below. Why does the callback function take three arguments (this[i], i, this) I just used this[i] as the callback but it doesnt work.
Array.prototype.myMap = function(callback) {
const newArray = [];
// Only change code below this line
for (i=0; i < this.length; i++){
newArray.push(callback(this[i]))
}
// Only change code above this line
console.log(newArray)
return newArray;
};