You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
lang-js
thisis already confusing in JS with one prototype, imagine with two...loadorgetdirectly frommain. You would have access from its.prototype, or from an instance created by invokingmainwithnew. Second, You can put.getonmain.prototype, but there'll be no special relationship between instance fromgetand instances frommain.main.get.registration()looks nicer thanmain.prototype.get.prototype.registration()thishas nothing to do with prototypes or inheritance, its value is set by the call and is never resolved on the[[Prototype]]chain. It's resolved on the scope chain (very quickly since it's local).