Skip to content

Glossary: JavaScript Basics

Callback

Also written: callbacks

A function passed to another function, which calls it later. Examples are the function given to `map`, to `setTimeout` or to `addEventListener`.

Where the book teaches it

Related terms

setTimeout