Factory Functions & Singleton Pattern

What is the primary purpose of a factory function in JavaScript?
Next Question (1/32)