I recently stumbled upon the Object.create() method in JavaScript, and am trying to deduce how it is different from creating a new instance of an object with
Object.create()
Internally Object.create does this:
Object.create
Object.create = function (o) { function F() {} F.prototype = o; return new F(); };
The syntax just takes away the illusion that JavaScript uses Classical Inheritance.