Skip to content

Glossary: Software Design Patterns in JavaScript

Template method

A pattern that fixes a job's steps in one place and leaves one step, the hook, for the caller to supply as a function or in a child class. makeReport fixes the report layout while formatRow varies.

Where the book teaches it

Related terms

HookAbstract class