Why do some people use
subclass.prototype = Object.create(superclass.prototype);
and others
subclass.prototype = superclass.prototype;
One uses the class while the other creates an instance of the class before attaching it to the prototype of the subclass. Which one is the correct way to do inheritance?