Bhavesh Jadhavbhaveshjadhav.hashnode.dev·May 27, 2024JavaScript Essentials: Understanding Scope, Lexical Environment, and HoistingUnveiling JavaScript Scope, Lexical Environment, and Hoisting: Demystifying Key Concepts Scope: Where Variables and Functions Live Scope determines where you can access a specific variable or function in your code. It is directly dependent on the lex...10 likesJavascript BasicsJavaScript
Vijaya Shreevijayashree.hashnode.dev·Mar 11, 2024Scope Chain & Lexical EnvironmentScope : Scope is one of the most important JavaScript concepts. It helps us to understand other concepts such as closures and lexical environment. There are two types of scopes : Global scope Local scope (Block and function scope) Global scope : ...lexical scope
Rahul Das Sarmarahulds.hashnode.dev·Feb 21, 2024Lexical EnvironmentDelving into JavaScript programming often introduces the concept of "lexical environment." While it may initially appear daunting, fret not! In this blog post, we'll demystify what lexical environment means in simple terms and explore its practical i...lexical environment
Olalekan Abdulfatahblog.lekan.dev·Sep 7, 2023JavaScript Enigmas: Cracking ClosuresClosures, Closures, Closures !!!!🤔 If you've ever felt puzzled by closures in JavaScript, you're in good company. You could be using closures every day in your code and not even know it! Yep, true story. Believe it or not, I once aced a closure-base...20 likes·68 readsJavaScript
Mariya Zaverimariyazaveri.hashnode.dev·Jul 28, 2023Understanding Lexical Scope and Closure in JavaScriptClosures were a rather daunting topic when I first got started with JavaScript. My hope for this article is for you to be able to appreciate the beauty of JavaScript functions and closures. The story of Lexical scope, scope chain and closures… Once u...74 likes·205 readsJavaScript FundamentalsJavaScript
JDjdblogs.hashnode.dev·Apr 28, 2023What is Execution Context in JavaScript ? How your JavaScript code actually gets executed underneath..In this article I shall be discussing about Execution Context in Javascript and talk about its phases. The execution context is very important to understand when it comes to understanding what goes on inside a program and the environment where the pr...Execution Context
Shrish Kerurtheshrish.hashnode.dev·Apr 27, 2023Understanding the Magic of Lexical Environments in JavaScriptA lexical environment is a fundamental concept in programming that refers to the set of variables, functions, and objects that are available for use at a particular point in your code. Every time you run a piece of code, a new lexical environment is ...1 like·156 readsJavaScript
Chetan Digholecodewithchetan.hashnode.dev·Nov 3, 2022The Scope ChainWhenever a javascript code begins it's execution a global execution context is set up first in the call stack(call stack in simple words is a stack of functions that has to be executed the first function that enters the stack will be completed at the...iwritecode
Amit Prajapatiamitprajapati.hashnode.dev·Oct 6, 2022The Scope Chain, Scope and Lexical Environment in Javascript...Scope of a Variable and Function. We can define a scope where, we can access the variables and function in an Javascript Code. We will try understand the scope with the help of an example. var x =10; function a (){ var x =20; console.log(x) } fun...JavaScript
Alok Ranjan Singhaloksingh00.hashnode.dev·Sep 28, 2022Javascript Placement Series(Part 2) Scope, Lexical Environment, Scope ChainingWhat is SCOPE ? Scope - It determines the accessibility of variable, object, function from different part of the code. For the above code variable b is within the scope of the function a( ). So basically there are two type of scopes 1 : Global sc...1 like·104 readsJavaScript