Higher order function is defined as:
A function that takes a function as an argument and/or returns a functions as return value.
Closure example:
function outer() {
const name = 'bob';
function inner(lastName) {
console.log('bob' + lastName);
}
return inner;
}
Do closures like the one defined above fit in to this category? It seems like they return a function as a return value, right?