JavaScript Tutorial
JS Variables
Variable Declaration
Variables store data values and are declared using var, let, or const.
Scope and Hoisting
var is function-scoped, while let and const are block-scoped. All declarations are hoisted, but let and const are not initialized until their definition (Temporal Dead Zone).