An immediately-invoked function expression (or IIFE, pronounced "iffy") is a JavaScript design pattern which produces a lexical scope using a JavaScript closure.
In javascript, when would you want to use this: (function(){ //Bunch of code... })(); over this: //Bunch of code...
javascript closures iife self-executing-function