Skip to content

Glossary: Software Design Patterns in JavaScript

Delegation

Also written: delegate

Handing a job to another object you hold instead of doing it yourself. Product.total asks its pricing and wrapping parts and adds their answers.

Where the book teaches it

Related terms

Composition