IIFE
↔ Design Pattern to run self-executing Anon Function once & disappear
Source: IIFE - MDN Web Docs Glossary: Definitions of Web-related terms | MDN
aka IIFE, Immediately-Invoked-Function-Expression
IIFE is used to Encapsulate Variables to inner Block Scope
Alternatively, can useBlock for private Variable Declaration let
& const
IIFE also used to prevent polluting the Global Scope