One of the major promises of OOP is its capability to perform different operations dynamically at runtime based on the object type and/or the execution context. This benefit is related to a few other OOP capabilities, including dynamic dispatch and subtype polymorphism.
This post presents an i... (more)
__proto__, the constructor function, and the
new operator, or more recently, the function
This post implements the first object, Person, in the sample described in the post ... (more)