Skip to content

Glossary: Software Design Patterns in JavaScript

Strategy

Also written: strategies

One interchangeable way of doing a job, where all versions share the same shape so the caller doesn't care which it gets. In JavaScript it is usually a function, such as a discount.

Where the book teaches it

Related terms

CallbackClosure