Difference Between Var, Let, and Const
Nov 13, 2023 · 1 min read · Var: Function Scope, allowing access throughout the entire function, hoisted to the top of its block scope, but not block scoped. Can be redeclared or reassigned. Let: Block scope ( for, while, if)- Hoisted to the top of its block but not initialized...
Join discussion



