In javascript, when would you want to use this:
(function(){ //Bunch of code... })();
over this:
//Bunch of code...
First you must visit MDN IIFE , Now some points about this