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
Ujjawal Kumarujjawalkr.hashnode.dev·Jun 11, 2023Immediately Invoked Function ExpressionsIntroduction: Immediately Invoked Function Expressions (IIFE) are a well-liked and effective tool in JavaScript programming that may be used to encapsulate code and produce self-executing functions. IIFE is essential for modularizing code, avoiding v...Discuss·41 reads2Articles1Week
Pulkit Govranipulkitgovrani.hashnode.dev·May 31, 2023IIFE (Immediately Invoked Function Expression) in JavascriptIIFE’s full form goes like Immediately Invoked Function Expression & it means the function is invoked at the same place where it is defined. Syntax of IIFE in Javascript (function (){ //performing operations })() From the above syntax, we can in...Discuss·66 readsJavaScript
Ritesh kushwahariteshblogs.hashnode.dev·May 20, 2023IIFE(Immediately Invoked Function Expression)An IIFE (Immediately Invoked Function Expression) is a JavaScript function that is immediately executed as soon as it is defined. It is a concise way to create a new scope for your code and execute it right away. Here's a simplified definition of an ...Discuss·98 readsIIFE