What's the opposite of "prototype"?

javascript, object, prototypal-inheritance

Solution

I'm not aware that there is any widespread consensus on a formal term for the object whose prototype is another object, but IMHO the term derived object is acceptable.

The point of prototypal inheritance is that one object inherits from another, or is derived from another. In some classical OO languages, such as C++, you will hear the term derived class, because classes inherit from other classes. Because inheritance is between objects in prototypal languages, I would say that "derived object" makes sense.

Problem

Consider the following: ``` var o = {foo: 'bar'}; var p = Object.create(o); ``` If `o` is the prototype of `p`, then what is `p` with regard to `o`?

Original source

Related problems