the linked series of prototypeobjects of an object is called it's prototype chain.
從下圖可看出 base class 與 derived class 的連結(繼承)方式,其實是不一樣的:
身為使用者自創的第一個 class,base class A 與 A.prototype 所連接的分別是 Function.prototype 與 Object.prototype。
derived class B 與 B.prototype 則分別連接 A 與 A.prototype。
prototype chaincan't go in circles.
the assignment of a property (dot/bracket notation) alwayscreates/sets a property in the original object, it nevermodifies objects in the prototype chain.
function's prototype (property) - new instances' prototype/parent object.
object's property - object's parent in prototype chain.