prototype vs __proto__
Javascript is prototyping language right. Which is "more powerful" than object oriented programming.. since you could "easily" emulate object inheritance with prototypes, but it is hard to emulate prototyping features with classes and objects. Or at least that is the theory . Class-based object-oriented languages, such as Java and C++, are founded on the concept of two distinct entities: classes and instances. ... A prototype-based language, such as JavaScript, does not make this distinction: it simply has objects. A prototype-based language has the notion of a prototypical object, an object used as a template from which to get the initial properties for a new object. Any object can specify its own properties, either when you create it or at run time. In addition, any object can be associated as the prototype for another object, allowing the second object to share the first object's properties. But wrapping your head around prototypes is not as easy as adv...