IIFE – Immediately Invoked Function Expression – JavaScript Topics covered: Introduction Why do we use IIFE Alternative in ES6+ Introduction It is a function expression that runs as soon as we define it. (function(){ console.log(“My favorite hero is Captain America”) })() Enter fullscreen mode Exit fullscreen mode The first parathesis make it an expression and…

Read More