These are actually good tips! I am a big fan of the factory functions myself and prefer them over classes. Good to see that one coming by for once. And I even learned something. I never knew why you would want to put functions on the .prototype, but your explanation makes sense. Definitely gonna revise some of my packages with factory functions.
These are actually good tips! I am a big fan of the factory functions myself and prefer them over classes. Good to see that one coming by for once. And I even learned something. I never knew why you would want to put functions on the
.prototype
, but your explanation makes sense. Definitely gonna revise some of my packages with factory functions.I am so glad to hear that! I was hoping I would grab some readers who were stuck on that prototype mystery!