Tipos de funciones en JavaScript

Named function
Anonymous function
Immediately invoked function expression.
Anxious Alligator