use of self-invoking function in javascript code example Example: self invoked function javascript (function(){ //Bunch of code... })();