DEV Community

Discussion on: Some lists are not like the others

Collapse
 
krofdrakula profile image
Klemen Slavič

Correct, the power of prototypal inheritance allows you to quickly compose objects like that. 👌

The point of the exercise was to implement the methods directly, rather than just piggybacking off of the existing ones, though. It could have easily been an article about how to use prototypes to build your custom arrays, something that I might pick up a later date.