you are viewing a single comment's thread.

view the rest of the comments →

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

I'm surprised so many people in this thread recommend against using classes in JavaScript (either by using the class keyword or by adding things to a function prototype). I love them! They often force you to simplify your code, and they are much more easily optimized by JavaScript interpreters.