In the Chapters 3 and 4, we mentioned the [[Prototype]]
chain several times, but haven't said what exactly it is. We will now examine prototypes in detail.
**Note: All of the attempts to emulate class-copy behavior, as described previously in Chapter 4, labeled as variations of "mixins", completely circument the [[Prototype]]
chain mechanism we examine here in this chapter.
Objects in JavaScript have an internal property, denoted in the specification as [[Prototype]]
, which is simply a reference to another object. Almost all objects are given a non-null
value for this property, at the time of their creation.