self exec func code example
Example 1: self invoked function javascript
(function(){
//Bunch of code...
})();
Example 2: javascript run self exectutin object
(function (parameters) {
// Function body
})(parameters);
(function(){
//Bunch of code...
})();
(function (parameters) {
// Function body
})(parameters);