Preetipreetisays.hashnode.devยทJul 17, 2024Closure in JSA function along with it's lexical scope inside a function is called closure. example: let's take a we want to increment a value by clicking a button, the basic way we can do it by is using a varible which will be incremented on every click. var clic...closure
Ricardo Rocha // ๐จโ๐ปbittonic.hashnode.devยทMar 18, 2024๐ญ IIFE (Immediately Invoked Function Expression): The Instant PerformerAll right, fellow coders ๐ป! Today, we're diving into the world of IIFE, those unsung heroes of JavaScript that swoop in, perform their magic and disappear without leaving a trace. Imagine a function that not only does its job but does it right away ...JavaScript
chukwuka chibuezekendrickchukwuka.hashnode.devยทSep 6, 2022Immediately Invoked Function Expression(IIFE) in JavaScriptFunction Declarations vs. Function Expressions Before we jump into immediately-invoked function expressions (IIFE), let's make sure we're on the same page regarding the differences between function declarations and function expressions. A function de...1 likeยท50 readsfunctions