Higher Order Function
In plain terms
A function that takes or returns other functions.
Going deeper
Higher-order functions treat functions as values, enabling powerful abstractions like map, filter, and reduce. They're a cornerstone of functional programming.
Under the hood
They enable composition and reusable behavior parameterization; callbacks and decorators are common forms.
Examples
map/filter/reduce, Array.sort(comparator), decorators, callbacks.
Think of it like...
Like a manager who delegates by handing workers a task (function) to carry out.