What are Factory Functions and why are they better than object constructors?
What are Factory Functions?
Factory functions are a way of creating objects without dealing with classes or the new keyword.
Let's do a quick recap of how to create an object. There are 2 ways to create an object, using an object literal and construc...
albasphaysal.hashnode.dev2 min read