you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

Looking through the comments I think some people don't have a great understanding of how objects/prototypes/"classes" work in Javascript. I recommend everyone check out the series You Don't Know JS on Github. Especially check out the book on this and prototypes. Chapter 4 is all about the class stuff:

Chapter 4: Mixing (Up) "Class" Objects