What are higher-order functions?

Higher-order functions take other functions as arguments or return them as results, enabling functional programming concepts like map, filter, and reduce.

const higherOrder = (fn) => fn();