Javascript isn't one of my main language, but using class avoids a few of the footguns Javascript has. You can't forget new, and extends/instanceof are far saner than duck typing.
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments