30 ms·
I prefer to combine arrow functions with factory functions, and avoid classes completely. You get private variables and functions via closures. The only real do
by learc83 10y ago
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 https://www.youtube.com/watch?v=ImwrezYhw4w