What is a callback function in JavaScript?
A callback is a function passed to another function so it can be executed later or as part of that function's operation. Callbacks are fundamental to JavaScript APIs such as event handling, timers, array methods, and asynchronous operations.