References

https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Inheritance https://stackoverflow.com/questions/8453887/why-is-it-necessary-to-set-the-prototype-constructor