Higher Order Function

Higher Order Function – function that takes function as input parameter or returns a function.

map is higher order because it takes function as input.

other functions that returns functions are higher order.