The chapter reads " A higher-order function is a function that either accepts functions as parameters, returns a function or both!"
I believe the sentence should read " A higher-order function is a function that either accepts functions as arguments, returns a function or both!"
The chapter contains some misinformation. I made sure to cross-reference the resources I used to clarify this misinformation
Reference
https://eloquentjavascript.net/05_higher_order.html