What are common built-in higher-order functions in JavaScript?
Array methods: map, filter, reduce, forEach, find, some, every, sort, flatMap. Function methods: bind, call, apply. Timers: setTimeout, setInterval. Promise methods: then, catch, finally.
Verify This Answer
Cross-check this information using these trusted sources:
More FAQs in What Are Higher-Order Functions in JavaScript?
A function that takes a function as an argument, returns a function, or both. This is possible because functions are first-class citizens in JavaScript.
Yes. They take a callback function as an argument. map transforms each element, filter selects elements, and reduce combines elements into a single value.
Yes. A function that returns another function is a higher-order function (a function factory). The returned function often closes over the outer function's variables, creating a closure.
Still have questions?
Browse all our FAQs or reach out to our support team
