He Eric, great post! Thanks man!
Just one question. You said that: “ A higher order function is a function that takes a function as an argument, or returns a function”
But in your first example the function is not returning a function or receiving another function as parameter. But you’ve said that the first example is a high order function.
Am I understanding wrongly?