2 ms·
When I was starting out with JavaScript I had a little mantra that was "It's dynamic, stupid!" Which was almost always the answer to any point of confusion.
by Lerc 13y ago
When I was starting out with JavaScript I had a little mantra that was "It's dynamic, stupid!" Which was almost always the answer to any point of confusion. Once I got around to seeing that object prototypes were just a tiny bit of magic glue, not only did the nature of constructor Functions make sense, but the inheritance mechanism became obvious. At that point JavaScript really transcends notions such as Multiple Inheritance because "It's dynamic, stupid!". Not only can you get the effects of Multiple Inheritance, but you can shift the object relationships around willy nilly. It's all just JavaScript. You are not so much adding a feature as creating an API to restrict your use of the natural ability in order to preserve your sanity.