Functions as Values: Callbacks

In JavaScript a function is a value you can hand to another function, which calls it for you; that handed-over function is a callback, and it's how sorting, timers and buttons work.

Updated

Cheat sheet: Functions as Values: Callbacks
Category
JavaScript
Level
Apprentice
Tags
Arrow Function, Callback Function, First-Class Function (javascript), Higher-Order Function (javascript), JavaScript