The _______ pattern is used to create an instance of an object with some default values.

  • Factory
  • Prototype
  • Singleton
  • Observer
The Factory pattern is used to create an instance of an object with some default values. It provides an interface for creating objects in a super factory or a factory method. This pattern is commonly used in JavaScript to create objects.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *