Javascript Design Pattern
Javascript Design Pattern
JavaScript
design patterns
with examples
ep.2
Structural Patterns
save for later
Decorator
The Decorator pattern allows behavior to be added to
an individual object, dynamically, without affecting the
behavior of other objects from the same class.
follow for more
Adapter
The Adapter pattern converts the interface of a class
into another interface the clients expect. It allows
classes to work together that couldn't otherwise
because of incompatible interfaces.
save for later
Facade
The Facade pattern provides a simplified interface to a
library, a framework, or any other complex set of
classes.
follow for more
Composite
The Composite pattern allows you to compose objects
into tree structures to represent part-whole hierarchies,
making the individual and the composite objects
uniform in treatment.
save for later
Flyweight
The Flyweight pattern reduces the memory footprint
of an application by sharing as much data as possible
with related objects.
follow for more
Proxy
The Proxy pattern provides a surrogate or placeholder
for another object to control access to it.