Files
developer-roadmap/roadmaps/javascript/content/hoisting@Lb5jLF91WO5V5CWpifciW.md
Arik Chakma 274082fd77 feat: clean roadmap content and sync scripts (#10181)
* refactor: clean to roadmap content

* refactor: move shared helpers into scripts/lib
2026-07-28 05:45:17 +06:00

784 B

Hoisting

Hoisting is JavaScript's behavior of moving variable and function declarations to the top of their containing scope before code execution. Variables declared with var are hoisted and initialized as undefined. Function declarations are fully hoisted, meaning they can be called before they appear in the source code. let and const are hoisted but not initialized, resulting in a temporal dead zone.

Visit the following resources to learn more: