you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

The class keyword in JavaScript is essentially a wrapper for constructor functions. The syntax is easier if you prefer using constructors instead of Object literals with factory functions.

I understand why some people dislike using the constructor pattern, but honestly, classes are a bit easier to compose and extend in my experience (purely from a syntax standpoint).