In the module pattern in JavaScript \"Immediately-Invoked Function Expressions\" (also known as self-executing anonymous functions) are used as self executing functions that
You can define a anonymous function via named function.
Example:
//factorial (function(n){ var self = function(n){ //call self return n > 0 ? (self(n-1) * n) : 1; } return self; })()