Flashcard
Where Array Methods Live
Array methods like map and push are inherited from Array.prototype, not stored on each array instance.
Question
When you call [1,2,3].map(...), where does the map method actually come from?
Click to reveal answer
Array methods like map and push are inherited from Array.prototype, not stored on each array instance.
When you call [1,2,3].map(...), where does the map method actually come from?