Immediately Invoked Functions
An immediately invoked function automatically executes after it's read into the parser. The following snippet below would immediately show 'stuff'
to the console.
IIF
(function() {
// Do stuff here
console.log('stuff')
})()