Please enable JavaScript to use CodeHS

CodeHS Glossary

Callback Function JavaScript

A function passed as a parameter to another function in order to be called later. For example, we pass a callback function to the `setTimer` function so that `setTimer` can call the callback function over and over again every `delay` milliseconds. ``` // Call the callback function "draw" every 20 milliseconds setTimer(draw, 20); ```