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

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?

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

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

A Javascript Function

Please explain the following way of writing a function in javascript functions : (function (){ /… Read more A Javascript Function