0% found this document useful (0 votes)
4 views7 pages

Javascript Design Pattern

This document discusses various structural design patterns in JavaScript, including the Decorator, Adapter, Facade, Composite, Flyweight, and Proxy patterns. Each pattern is briefly defined, highlighting its purpose and functionality in software design. The document serves as an educational resource for understanding these design patterns with examples.

Uploaded by

Hans
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views7 pages

Javascript Design Pattern

This document discusses various structural design patterns in JavaScript, including the Decorator, Adapter, Facade, Composite, Flyweight, and Proxy patterns. Each pattern is briefly defined, highlighting its purpose and functionality in software design. The document serves as an educational resource for understanding these design patterns with examples.

Uploaded by

Hans
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

javascript series

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.

You might also like