Miles to go ...

JS: Prototype inheritance in Javascript

This post will discuss exclusively about Javascript’s prototype inheritance. Many JS frameworks leverage on prototype inheritance to add that extra bit black-magic in their tool.

Constructor

Any function call that is preceded by the new keyword acts as a constructor.

Prototypes

Object oriented-ness in Javascript is achieved by using prototype inheritance and late binding of this.

This

this can be bound in five different ways,

In case of setTimeout and setInterval timeout-handlers, this when used inside the handler function will refer to global object.