Immediately invoked function expression (IIFE). The act to safely encapsulate function so that it does not collide with any other functions in the code.
How to make an IIFE:
You can override the parser by creating a normal function expression. In a normal function expression you create a variable equal to the function. By doing so the parser sets in memory the function during the creation phase.
However in IIFE you bypass this in a different way instead of creating a variable you add a parenthesis before the function so that the parser doesn’t see the word function first. Instead you write the whole function inside of the parenthesis and innovate it immediately after creation. Having the variable name inside of the function as well to keep the execution stack slim. IIFE holds the function, variable, and execution command all in one. This prevents crashing into any other part of the rest of the code. The code is inside of its own lexical environment.
This method of writing functions is emphasized due to large open source libraries taking this approach to writing their code. Libraries like jQuery etc use IIFEs. A new practice has been to look at open source projects code to see good coding mannerism.<div class='sharedaddy sd-block sd-like jetpack-likes-widget-wrapper jetpack-likes-widget-unloaded' id='like-post-wrapper-155635758-341-5ce3e088a8d08' data-src='https://widgets.wp.com/likes/#blog_id=155635758&post_id=341&origin=trilamanila.com&obj_id=155635758-341-5ce3e088a8d08' data-name='like-post-frame-155635758-341-5ce3e088a8d08'><h3 class="sd-title">Like this:</h3><div class='likes-widget-placeholder post-likes-widget-placeholder' style='height: 55px;'><span class='button'><span>Like</span></span> <span class="loading">Loading...</span></div><span class='sd-text-color'></span><a class='sd-link-color'></a></div>