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...Discuss·10 likesJavascript BasicsJavaScript
Sohan Shettysnciker.hashnode.dev·Oct 2, 2023Demystifying JavaScript Variables: var, let, and constToday we will try to understand the various concepts related to var, let and const we first need to understand variable scope in javascript. In the world of Javascript, variables have boundaries called 'scope'.Think of scope as the area where a varia...Discuss·60 readsJavaScript
Venkatesh K venky17.hashnode.dev·Mar 23, 2023Hoisting in JavaScript explainedHoisting is a very unique feature of JavaScript where you can use variables and functions even before they are declared. In most other programming languages calling a variable or function before declaration will result in error. Variable hoisting. Va...DiscussJavaScript
Preeti samuelkamilapreetisamuel.hashnode.dev·Feb 1, 2023What is Temporal Dead Zone(TDZ)Temporal Dead Zone (TDZ) is a concept in JavaScript that refers to the time period between the declaration of a variable and its assignment, during which the variable is in an undefined state. In JavaScript, variables declared with the "var" keyword ...Discuss·61 readsjs
Vijaya Shreevijayashree.hashnode.dev·Oct 5, 2022Temporal Dead Zonelet and const these variables were introduced in ES6 as the old var is getting old... Now.. these let and const were block scoped variables unlike var which is global scoped. var scope = 'global'; var ifTrue = true; if (ifTrue) { ...Discuss·51 readsJavaScript
Miheer Tamkhanemiheer.hashnode.dev·Jul 6, 2022Understanding Hoisting and TDZ(Temporal Dead Zone) in JS✨Hello folks! In this article, we will look at two very advanced and essential topics in javascript which are related to each other, Hoisting and TDZ(Temporal Dead Zone). In the first half, we will see what is hoisting? How do things get hoisted in JS...Discuss·5 likes·252 readsJavaScript
Omkar Jadhavomjadhav.hashnode.dev·Jun 10, 2022Hoisting and TDZ in JavascriptJavascript can be tricky to understand sometimes because of how it works. Concepts like Hoisting and TDZ are one of those "Javascript-special" items on the tricky concepts menu. But once we know what it is, it makes all the sense why it is. So, let's...Discuss·52 readshosting