Functions as Values
Functions as Values: Functions as Values: Callbacks.
Updated
- Functions as Values: Callbacks (Apprentice): 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.