---
title: "Discussion on \"Hoisting in JS: Explanation + Examples\" | Hashnode"
description: "Discussion on \"Hoisting in JS: Explanation + Examples\". Hoisting allows you to use functions and variables before they're declared in the code • var, let and const have different behaviours • Hoisting functions"
url: "https://hashnode.com/posts/hoisting-in-js-explanation-examples/64cb683c3f99290793273e66"
---

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

Discussion

# [Hoisting in JS: Explanation + Examples](https://shivankjshacker.hashnode.dev/hoisting-in-js-explanation-examples?utm_source=hashnode&utm_medium=feed)

Hoisting allows you to use functions and variables before they're declared in the code • var, let and const have different behaviours • Hoisting functions

Aug 3, 2023 · 3 min read · shivankjshacker.hashnode.dev  
Updated Aug 11, 2023  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#programming](https://hashnode.com/tag/programming)
-   [#hoisting](https://hashnode.com/tag/hoisting)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#es6](https://hashnode.com/tag/es6)

## Written by

[Shivank Mitra](https://hashnode.com/@ventuscoder)

@ventuscoder · Mumbai, India

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

Node.js + React.js Dev

Full Stack JavaScript Dev 👨‍💻 Basketball Player 🏀 Always improving 💯

## Responses 1

Markdown supported · ⌘↵ to post

[Muhamad Rashid Mugaba](https://hashnode.com/@mugaba)

[Aug 4, 2023](https://hashnode.com/posts/hoisting-in-js-explanation-examples/64cb683c3f99290793273e66/comment/64cd5cf03d3aabc9723f7de2)

Thanks for this. I mean I knew about Hoisting in Javascript. But the temporal Dead Zone is new.

[Shivank Mitra](https://hashnode.com/@ventuscoder)

[Aug 6, 2023](https://hashnode.com/posts/hoisting-in-js-explanation-examples/64cb683c3f99290793273e66/comment/64cd5cf03d3aabc9723f7de2#reply-64cfaaf93d3aabc9723faaf0)

So happy to help you!
