Skip to content

Glossary: Software Design Patterns in JavaScript

Callback

Also written: callbacks

A function you hand to another function so it can call it later. The compare function passed to toSorted is a callback and a strategy.

Where the book teaches it

Related terms

StrategyInversion of control