JavaScript inheritance and the constructor property

Okay, let’s play a little mind game: From the above image we can see: When we create a function like function Foo() {}, JavaScript creates a Function instance. Every Function instance (the constructor function) has a property prototype which is a pointer. The prototype property of the constructor function points to its prototype object. The … Read more