I'm using some kind of module pattern as described here :
var Module = function(){
function foo(){}
return{
foo:foo,
}
}();
it can be called with
Module.foo();
However, it only works when the call is made after the declaration.
For readability purpose, is there any way to call it before the declaration ?
foofor that, if you want to execute it right away? Just execute the code during the module instantiation.