https://jsfiddle.net/sathishkrcs/pyfw...
In a prototypal system, objects inherit from objects. JavaScript, however, lacks an operator that performs that operation. Instead it has a new operator, such that
new f()
produces a new object that inherits from
f.prototype
http://javascript.crockford.com/proto...