View on GitHub

reading-notes

ES6 Classes Notes

While using prototypes does work, it will result in greater memory usage and harder to manage code.

Using classes allow additional sub classes to use the same variables as the parent class, running more efficiently. This also cleans up the code by simplifying and not repeating the same steps.