Call back or higher order functions

I was wondering if call back functions are the same as higher order functions.

The definitions overlap, but often they are used to refer to very slightly different things. But don’t get too hung up on the terminology.

A callback is a function you give to another function that gets executed when something happens in that outer function

document.addEventListener('click', () =>  {
console.log("something, somewhere was clicked"

The function that is the second argument will get executed when anything on the web page gets clicked.

A higher order function is, technically, just a function that accepts another function as an argument. So that covers the above. Often they are used in writings on JS to refer specifically to functions that return other functions.