by dkrvt · 11y ago · 0 comments
I usually write this even though it's a bit verbose:
function Child() {
Parent.call(this);
}
Child.prototype = Object.create(Parent.prototype);
Child.prototype.constructor = Child;
Any opinion on this or link to a good guide? class Child extends Parent {
}