Course contentsShow
JavaScript
Lesson 1812 of 2,72338. Object-Oriented PatternsPro lesson

When to Choose Factories

Recognize use cases where factories offer simpler testing, better encapsulation, or avoidance of 'new' and 'this'.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.