DEV Community

Cover image for JavaScript Design Patterns
Alaa Samy
Alaa Samy

Posted on • Updated on

JavaScript Design Patterns

Design patterns are advanced object-oriented solutions, used to recurring problems in software design.

Design patterns have many categorizations, but the most popular one is:

⚡- Creational Design Patterns:

It deals with object or class creation mechanisms, and it solves design problems when creating objects.
1- Factory Methods
2- Builder
3- Abstract Factory
4- Prototype
5- Singleton

⚡- Structural Design Patterns:

It assembles objects and classes into a larger structure, making sure that this structure is flexible and efficient, and that if change happens to part of a system it doesn’t affect the system entirely.
1- Adapter
2- Composite
3- Decorator
4- Bridge
5- Flyweight
6- Facade
7- Proxy

⚡- Behavioral Design Patterns:

It’s responsible for improving the communication between disparate objects and classes in a system.
1- Command
2- Interpreter
3- Iterator
4- Memento
5- Observer
6- Template Method
7- Chain of Responsibility
8- Meditor
9- State
10- Strategy
11- Visitor

Top comments (0)