All challenges
Multiple ChoiceIntermediate 30s

Factory Pattern

Choose the best answer for: factory function
Options
  1. 1A factory function is exactly the same as a singleton
  2. 2A factory function returns new objects without using new
  3. 3A factory is a class constructor used to build instances
  4. 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.

Play this in a 3-minute battle