Functions can be stored in variables:
const add = function(a, b) {
return a + b
}
console.log(add(5, 3)) // 8
This is called a function expression. The function has no name of its own. The variable name is used to call it. Function expressions must be defined before you use them.