I have heard that the Object.create();
method creates a new object and inherits the PROTOTYPE of the Object that is passed as the first parameter.
However I've seen both of these scenarios:
var newObj = Object.create(BaseObject);
And
var newObj = Object.create(BaseObject.prototype);
The first scenario is inheriting the prototype of BaseObject and the second is doing the same, is there any difference? It seems like no, there is not.