how to write a self invoked function in js code example Example: self invoked function javascript (function(){ //Bunch of code... })();