Glossary term
What is higher-order function? Meaning for developers
A function that takes another function as an argument or returns one. setTimeout, addEventListener and array.map are all higher-order.
Learn it properly · JavaScript CoreLesson 12: First-Class Functions, Callbacks and Event ListenersFunctions as values: passing them as arguments, returning them from other functions, sync vs async callbacks stepped side by side, and attaching and removing event listeners without leaking memory.