[JavaScript] Intermediately Invoked Function Expression (IIFE)
Introduction
In this article, I will be talking about Intermediately Invoked Function Expression (IIFE), and why we need an IIFE.
IIFE Syntax
Normally, we use a function like this in JavaScript:
// function declaration
function add(a, b) {
retur...
jaylog.hashnode.dev3 min read