Walid Ezzatwalidezzat.hashnode.dev·Dec 22, 2024Understanding JavaScript Closures: A Beginner's GuideIntroduction Closures are a fundamental concept in JavaScript, allowing you to write better, more efficient, and modular code. They enable private variables, state maintenance, and advanced functionality often seen in modern frameworks and libraries....JavaScript
Lim Woojaejaylog.hashnode.dev·Dec 19, 2024[Python] How Closures and Decorators in Python Work Together to Simplify CodeWhat Is Closure? A closure is created when a function (the inner function) is defined within another function (the outer function) and the inner function references variables from the outer function. def func1(): a = [] def func2(v): ...Pythonclosure
Utkarshblogs.utkarshrajput.com·Nov 11, 2024Part 1: Execution Context - The core of JavascriptIntroduction JavaScript’s Execution Context is foundational yet complex concept for understanding how JavaScript runs your code. If you aim to write performant, error-free code and debug complex applications, mastering Execution Context is crucial. I...11 likes·31 readsJavaScript
Oyeyemi Wole Toheebwolecodes.hashnode.dev·Oct 31, 2024Understanding closure in JavaScript.If you’ve spent any time in JavaScript, you’ve probably run into the word closure and thought, “What is this magic?” Closures can feel like an advanced topic, but once you get them, they make so much sense and open up a lot of possibilities in your c...2 likesJavaScript
Abhishek Sharmaabhisheksharmacodes.hashnode.dev·Oct 3, 2024Understanding JavaScript Closures: A Deep DiveA closure in JavaScript is a function that has access to variables in its outer (lexical) scope, even after the outer function has returned. This concept is fundamental to understanding how JavaScript functions work and is often used to create privat...JavaScript
Vitthal Korvanvitthal-korvan.hashnode.dev·Oct 3, 2024Hoisting and ClosuresHoisting in JavaScript: Hoisting is a JavaScript mechanism where variables and function declarations are moved ("hoisted") to the top of their scope (global or function scope) before the code execution. This means that regardless of where variables a...1 likeAdvanced JavaScript and DOMHoisting
Abeer Abdul Ahadabeer.hashnode.dev·Sep 27, 2024What is Closure in JavaScript and How is it Useful?A closure is a feature in JavaScript where an inner function has access to variables from its outer function, even after the outer function has finished executing. This allows the inner function to remember the environment in which it was created. Ho...JavaScriptclosures in javascript
Gyuhang Shimplto001.hashnode.dev·Sep 16, 2024Functional Programming in JavaIntroduction Since Java 8, Functional Programming is supported. Functional Programming techniques are designed and implemented using lambdas. Most of the Functional Programming libraries are available in java.util.function. Imperative Programming An ...Functional Programming
Hardik Dhamijahardikdhamija.hashnode.dev·Sep 2, 2024Decoding Functional CurryingWhat is Currying ? Currying is a programming technique that transforms a function taking multiple arguments (e.g., func(a, b, c, d)) into a sequence of functions, each accepting one argument at a time. This allows you to call the function in a chain...currying
Hardik Dhamijahardikdhamija.hashnode.dev·Sep 1, 2024DeCoding Closures: Exploring JavaScript with Fun ExamplesIntroduction JavaScript is primarily a function-oriented language, offering developers a great deal of flexibility. You can create functions on the fly, pass them as arguments, and even call them from completely different parts of your code. This mak...34 readsJavaScript