workabout

What are higher order functions?

A higher-order function is a function that accepts another function as an argument or returns a function as a return value.

const firstOrderFunc = () => console.log ('Hello I am a First order function');

const higherOrder = ReturnFirstOrderFunc => ReturnFirstOrderFunc ();

higherOrder (firstOrderFunc);