NDNisarga Deyinjs-fundamentals.hashnode.dev00HoistingJan 1 · 3 min read · Var vs Let vs Const Featurevarletconst ScopeFunctionBlockBlock HoistedYesYes (TDZ)Yes (TDZ) Initialized on hoistYesNoNo Re-declarationYesNoNo Re-assignmentYesYesNo Global objectYesNoNo First, the Mental Model (Critical) Before definitio...Join discussion
NDNisarga Deyinjs-fundamentals.hashnode.dev00Scope in JSDec 31, 2025 · 3 min read · Scope determines: Where a variable is accessible Where it is visible Where it can be modified In JavaScript, scope is resolved lexically (at write time, not runtime). Types of Scope in JavaScript JavaScript has three main scopes: Scope TypeC...Join discussion