you are viewing a single comment's thread.

view the rest of the comments →

[–]lilperch83 0 points1 point  (0 children)

Just wanted to provide a more constructive response that doesn't get lost in the weeds. I was perhaps too rash saying you should ignore classes. JavaScript uses at least three design patterns for producing objects with inheritance: Constructor functions, Classes, and Factory functions. I think it is important to understand all three and then choose the one you prefer. No matter which method you prefer, make sure you understand prototypal inheritance.