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

Calling Function Defined In An Iife Function From Html

I have a IIFE function in a file called test.js i.e. (function mainIIFE() { 'use strict'… Read more Calling Function Defined In An Iife Function From Html

What Are The Different Ways Of Writing An Iife? What Are Their Use Cases?

I have started reading this book. Chapter 2 says that there are different ways to write an IIFE: !f… Read more What Are The Different Ways Of Writing An Iife? What Are Their Use Cases?

What Is The Difference Between Assigning An Iife's Public Members To A Variable Vs Returning An Object

I've been looking at a lot of JavaScript code lately and I've seen two different ways of us… Read more What Is The Difference Between Assigning An Iife's Public Members To A Variable Vs Returning An Object

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

Dollar Sign Before Self Declaring Anonymous Function In Javascript?

What is the difference between these two: $(function () { // do stuff }); AND (function () { … Read more Dollar Sign Before Self Declaring Anonymous Function In Javascript?

Javascript Why Wrap A Variable Or Constructor In An Iife?

I saw something like this today var Visualizer = (function() { function Visualizer() { //..… Read more Javascript Why Wrap A Variable Or Constructor In An Iife?