object.create, applying prototypes



prototyping chaining,

object extension for all the

modern programmers

var Ninja = function () {};
Ninja.prototype.throw = function (item) {
  console.log('Throwing ' + item);
};

var Shinobi = function () {}; 
Shinobi.prototype = Object.create(Ninja.prototype);

var shinobi = new Shinobi; 

shinobi.throw('knife'); // Throwing knife