Skip to content

Glossary: Software Design Patterns in JavaScript

Command

Also written: command pattern

A pattern that turns an action into an object with run and undo methods, so actions can be stored, replayed or reversed. AddItem lets the cart page offer Undo.

Where the book teaches it

Related terms

Undo stack