No, this represents the array that the myMap method will be called on.
function timesTwo(elem) {
return elem * 2;
}
const arr = [ 1, 2, 3, 4, 5];
const anotherArr = arr.myMap(timesTwo); // `this` is `arr` while inside the `myMap` method
console.log(anotherArr); // displays [ 2, 4, 6, 8, 10]
Since this is just the array the method is called on and you need to iterate over the entire array with your for loop, you use i < this.length as the for loop conditional.