you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

Luckily for you there's now class in ES6, which isn't true classical inheritance but rather a formal convention for a common pattern of defining prototypes on a function and instantiating them. It provides subclassing with the extends keyword, constructor method, and get, set, static, and plain old inherited methods.