Implement map on a Prototype | Functional Programming

All too confusing. I had to look at the solution because I was lost on ideas how to approach the problem. In the first solution why do we have this.length? shouldn’t it be callback.length?
Please guide