Hey there!👋 In this tutorial, you will learn about the JavaScript factory functions which are functions that return objects. A factory function is a normal function in JavaScript with one difference – It returns an object literal. What is Factory ...

Markdown supported · ⌘↵ to post
Tariq Rafid
Great article, I actually wrote an article yesterday about Factory design pattern, you probably want to have a look at it, as there is also an abstracted implementation for the factory function pattern.