High-Order Functions
What is a high order function?
A function that takes in a function as an argument, returns a function, or both. Yes, functions can take in other functions, they are closures. A closure is a self-contained block of code that can be passed around. Functions are…