Junaid Bin JamanProjunaidbinjaman.help·Sep 5, 2024Understanding the Difference Between IIFE and jQuery’s Ready FunctionIn the world of JavaScript and jQuery, it’s common to encounter different patterns for executing code. Two such patterns are the Immediately Invoked Function Expression (IIFE) and the jQuery ready function. While both may look similar in some cases, ...DiscussJavaScript
Junaid Bin JamanProjunaidbinjaman.help·Sep 5, 2024Understanding Immediately Invoked Function Expressions (IIFE) in JavaScriptIn JavaScript, one of the powerful features is the Immediately Invoked Function Expression, often abbreviated as IIFE. This pattern is widely used to maintain clean code, control variable scope, and prevent global namespace pollution. In this article...DiscussIIFE
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...Discussclosure
Abhishek Dandriyalabhishek-dandriyal.hashnode.dev·Apr 10, 2024Functions in JavascriptFunction Expression: A function expression in JavaScript is when you assign a function to a variable. It's an alternative way to define a function compared to the traditional function declaration. In your example: const square = function(num) { r...Discussiife in javascipt
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 ...DiscussJavaScript
Kapil YadavforJavaScript Basicsjavascriptbasics.hashnode.dev·Mar 11, 2024JavaScript Immediately invoked function expressions (IIFEs)In Javascript, Functions are first-class Objects, in simple words, functions can be passed as an argument (callback) or can be returned from another function. Function Declaration and Function Expression: Function Declaration:We can declare a functio...Discuss·1 likeJavaScript
Lim Woojaejaylog.hashnode.dev·Oct 24, 2023[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...DiscussJavaScriptIIFE
Ravinder Pandeyravinpandey.hashnode.dev·Sep 14, 2023IIFE: JavaScript's Secret Weapon 🗡️Hello, fellow JavaScript enthusiasts! Today, we're delving into the magical realm of IIFE (Immediately Invoked Function Expressions), where code behaves like a well-trained lion 🦁 and follows your commands instantly! 🎩🪄 What's an IIFE, Anyway? 🤔�...Discuss·31 readsJavaScript
Prasoon Abhinawblog.pabhinaw.dev·Aug 8, 2023Mastering JavaScript: Unraveling the Power of Web DevelopmentScope Scope means variable access. What variable do I have access to when a code is running? In Javascript by default, you’re always in the root scope i.e. the window scope. The scope is simply a box with a boundary for variables, functions, and obje...Discuss·59 readsJavaScript
Diwakardiwakarkashyap.hashnode.dev·Jul 10, 2023What is IIFE (Immediately Invoked Function Expression) in Javascript ?An IIFE (Immediately Invoked Function Expression) is a self-invoking javascript function it executes immediately upon definition, without requiring an explicit call. IIFEs are useful for creating private scopes, preventing variable conflicts, and enc...Discuss·10 likes·39 readsJavaScript