Skip to content

Glossary: Software Design Patterns in JavaScript

Composition

Also written: compose

Building an object from smaller part objects that each do one job, a "has-a" relationship. A Product has a pricing part and a wrapping part.

Where the book teaches it

Related terms

Has-a / is-aDelegationInheritance