Is “Class” In ES6 The New “Bad” Part?

Actually you didn’t mention the strongest reason why it is a bad part!
In es6 class syntax, you must instantiate with the “new” keyword(), and that makes it impossible to later refactor to a different implementation like factory.

class a {}
> Uncaught TypeError: Class constructor a cannot be invoked without ‘new’


One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.