Multiple ChoiceIntermediate 30s
Factory Pattern
Choose the best answer for: factory function
Options
- 1A factory function is exactly the same as a singleton
- 2A factory function returns new objects without using new
- 3A factory is a class constructor used to build instances
- 4A factory requires the new keyword to return an object
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.