Skip to content Skip to sidebar Skip to footer
Showing posts with the label Iife

Javascript Bang "!" Functions Vs Leading Semi-colon ";" Iifes

Airbnd suggests I do this: !function() { // ... }(); Because: This ensures that if a malformed … Read more Javascript Bang "!" Functions Vs Leading Semi-colon ";" Iifes

Understanding Iife

in my page i have several img tags as follow: in the js file i've created this: function Sto … Read more Understanding Iife

What Is The Functional Difference Between These Two Different Module Pattern Syntaxes

I see this syntax everywhere: var mod = (function(){ var pvtvar; var pvtfunc = function(){}; … Read more What Is The Functional Difference Between These Two Different Module Pattern Syntaxes

Manually Invoke IIFE

I've got a library (Hubspot Odometer) which I am using in a web application I am developing and… Read more Manually Invoke IIFE