MoTTs

Member since
MoTTs

Recent Docs Activity

View all activity
Page Date Comment

Inheritance and the prototype chain


Removed link to medium blog

Classes


That's a weird and inaccurate way to describe extends. We wouldn't say Object.create's only purpose is to create single ancestor taxonomies, even though it does.

Inheritance and the prototype chain


This article is about the prototype chain. Alternative inheritance patterns that don't use the chain are already discussed on the MDN page "Inheritance in JavaScript". And although bloggers talk about Object.assign and "different kinds of prototypal inher

Inheritance and the prototype chain


Removed example. It isn't clear what it was supposed to be an example of, constructor functions were already presented earlier, and the example's own code comments were criticizing the example's unusual decisions.

Inheritance and the prototype chain


"Not the same" depends on which language we're comparing to. ES6 classes are similar to Python and Ruby classes.