// A function that returns a function is called a higher-order function.
/*
In this example, we are returning a function from another function -
We can return a function because functions in JavaScript are
treated as values.
*/
function sayHello() {
return () => {
console.log("Hello!");
}
}