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

How To Create Multiple Instances Of Iife Javascript Module?

I'm dealing with a huge javascript codebase that I'm trying to reorganize. I'm not real… Read more How To Create Multiple Instances Of Iife Javascript Module?

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?

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

How To Create Javascript Object Using Iife

I have a Student object like the following, function Student(){ this.studentName = ''… Read more How To Create Javascript Object Using Iife

Re-invoking Iife

Why is that code block throws an error 'Uncaught ReferenceError: setSize is not defined' co… Read more Re-invoking 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