DEV Community

Discussion on: Write More Robust JavaScript: 7 Best Practices

Collapse
 
vyckes profile image
Kevin Pennekamp

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.

Collapse
 
jsmanifest profile image
jsmanifest

I am so glad to hear that! I was hoping I would grab some readers who were stuck on that prototype mystery!