Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Airbnb JavaScript Style Guide.
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;
class Child extends Parent { }
I usually write this even though it's a bit verbose:
Any opinion on this or link to a good guide?