News for hackers. Stuff that matters.
Re:Replacing ‘that = this’ assignments in JavaScript with Ar... by learc83 on Friday April 14, 2017 @04:12PM (#14116907)
I prefer to combine arrow functions with factory functions, and avoid classes completely. You get private variables and functions via closures. The only real downside is that it's slightly slower.

Here's a good video on the subject https://www.youtube.com/watch?v=ImwrezYhw4w

There are no comments on this comment yet.