Difference between Array.prototype.mymap and Array.prototype.map

What is the difference between between Array.prototype.mymap and Array.prototype.map?

I’m working on Implement Map On A Prototype and did not understand why I would use Array.prototype.mymap as opposed to Array.prototype.map.

1 Like

That lessons aim to teach you how you can implement your own prototypes method, while also learning how a method works under the hood.

Of course in a real-life scenario you will use the built-in methods, but nevertheless is useful and nice to know how they work.

1 Like

One is the built in method that you are tasked to replicate, the other is the method you are creating in this situation which at the end should have the same functionality of the built in method

1 Like