Higher-Order Functions
Functions that take other functions as arguments, return functions, or both — the foundation of functional-style JavaScript.
A higher-order function is any function that operates on other functions, either by accepting them as arguments or by returning a new function (or both). This concept is central to idiomatic modern JavaScript, and it's the theoretical backbone behind array methods like map, filter, and reduce, event handlers, and middleware patterns, so interviewers use it to test whether you think in terms of composable, reusable behavior.
A higher-order function is like a manager who doesn't do the specific task themselves but hands it off to whichever specialist (function) you give them — the manager (map/filter/reduce) still coordinates iterating over the whole team, but the actual per-item decision is entirely up to whichever specialist you plugged in.