How to use Immediately Invoked Function Expressions (IIFE) in JavaScript

How to use Immediately Invoked Function Expressions (IIFE) in JavaScript