Functions can be used just like any other value: they can be passed around, assigned to variables, or they can be stored in arrays or objects.
const introduction = () => "Hello! My name is "
const welcome = (name, intro) => intro() + name
welcome("Kurt", introduction()) // Hello! My name is Kurt