preeti priyapreetisays.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
Varun Kelkardevvarun.hashnode.dev·Jul 12, 2024Closures in JavaScript: What They Are and Why They MatterIn the vast world of JavaScript, closures stand out as one of the most powerful and intriguing concepts. Whether you're a seasoned developer or just starting your coding journey, understanding closures is essential for mastering JavaScript. In this b...DiscussJavascriptJavaScript
Nikhil Chauhannikhil007.hashnode.dev·Jun 26, 2024ClosuresBefore we dive into the fascinating world of closures, it's important to first understand two key functions in JavaScript: setTimeout and setInterval. These functions are essential for managing time-based operations and will help us illustrate the co...Discussclosures in javascript
Vatsal Bhesaniyavatsal08.hashnode.dev·May 18, 2024The Art of JavaScript Functions: A Comprehensive ExplorationFunctions are reusable blocks of code that encapsulate logic and perform specific tasks. We will understand functions with real-world web application examples that demonstrate the practical use of functions in JavaScript. https://youtu.be/l1Ye_56K_Ow...DiscussJavaScript
Jatangi Thanujacli.hashnode.dev·May 15, 2024detailed information on closuresA function can have access to variables of it's outer scope. example: function outer(){ let x= 10 function inner(){ console.log(x) } return inner } In the inner function we are accessing the x variable from outer scope of that inner function this is ...Discussclosures in javascript
Rohit Dasublogs.rohitdasu.dev·May 12, 2024Is Closure in JS really that complicatedThe definition Closure is bundling of two or more functions, where inner function has access to the properties and methods of the outer functions. function calculate() { var num1 = 10; function add(num2) { return num1 + num2; // retur...Discuss·1 likeclosures in javascript
Ritochit Ghoshritochit.hashnode.dev·May 11, 2024Dissecting JavaScript IIntroduction JavaScript is an interpreted programming language used to create interactive and dynamic websites. JavaScript was created by Brendan Eich in May 1995, within 10 days. Eich worked at Netscape and implemented JavaScript for their web brows...Discuss·60 likes·97 readsJavaScript
gunjan agarwalgunjanagarwal.hashnode.dev·Apr 28, 2024Tricky Questions About JavaScript's setTimeoutIntroduction: While working with JavaScript, setTimeout often presents some puzzling scenarios due to its asynchronous nature and the way it interacts with JavaScript’s scoping rules. This post explores some of these tricky cases to enhance your unde...Discuss·10 likesFrontend Development
sujithamypersonalblog.hashnode.dev·Apr 5, 2024Closures in Java ScriptIn Java Script closure is a combination of a function and the lexical environment within which that function has declared. This environment consists of any local variables that were in scope at the time closure was created. Closures allow a function ...DiscussJavaScript
Murali Singhmuralisingh.hashnode.dev·Apr 4, 2024Understanding JavaScript Scopes & ClosuresLet's begin by exploring the concept of scopes: what exactly are scopes? Scope is the current context of execution in which values and expressions which are accessible or can be referenced are available for use. JavaScript has four types of scopes:...Discussscope and closure in javascript