Home > Tag Archives: IIFE

Tag Archives: IIFE

Avoid polluting global namespace in Javascript- IIFE (Immediately Invoked Function Expression)

javascript

Avoid polluting global namespace in Javascript- IIFE (Immediately Invoked Function Expression) Everybody says Global variables are bad, they are evil, it produces abnormal behavior. In the browser environment everything you load is in a single space. An HTML page may be linked to 1, 2, or 10 JS files. Each JS file may contain code that is written by completely ... Read More »