---
title: "Discussion on \"JS Fundamentals #12 — 🧵 JavaScript Variable Hoisting & Temporal Dead Zone (TDZ)\" | Hashnode"
description: "Discussion on \"JS Fundamentals #12 — 🧵 JavaScript Variable Hoisting & Temporal Dead Zone (TDZ)\". If you've ever wondered why JavaScript sometimes throws a ReferenceError even though your variable is declared — you're not alone. The answer lies in two concepts: hoisting and the Temporal Dead Zone (TDZ).\n\n🧠 What is Hoisting?\nHoisting is JavaScrip..."
url: "https://hashnode.com/posts/javascript-variable-hoisting-and-temporal-dead-zone-tdz/685e95035ecb3b72a0579a03"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [JS Fundamentals #12 — 🧵 JavaScript Variable Hoisting & Temporal Dead Zone (TDZ)](https://pushpesh-js-articles.hashnode.dev/javascript-variable-hoisting-and-temporal-dead-zone-tdz?utm_source=hashnode&utm_medium=feed)

If you've ever wondered why JavaScript sometimes throws a ReferenceError even though your variable is declared — you're not alone. The answer lies in two concepts: hoisting and the Temporal Dead Zone (TDZ). 🧠 What is Hoisting? Hoisting is JavaScrip...

Jun 27, 2025 · 3 min read · pushpesh-js-articles.hashnode.dev  
Updated Dec 6, 2025  
Read the article

-   [#hoisting](https://hashnode.com/tag/hoisting)
-   [#tdz](https://hashnode.com/tag/tdz)

## Written by

[pushpesh kumar](https://hashnode.com/@pushpeshkumar)

@pushpeshkumar · Oslo, Norway

  
[View profile](https://hashnode.com/@pushpeshkumar)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
