---
title: "Discussion on \"How Hoisting Works in JavaScipt\" | Hashnode"
description: "Discussion on \"How Hoisting Works in JavaScipt\". Before the code is executed, during the compilation step, variable and function declarations are moved to the top of their respective scopes. This behavior is referred to in JavaScript as hoisting. As a result, variables and functions can be defined ..."
url: "https://hashnode.com/posts/how-hoisting-works-in-javascipt/649180c8d985c2545dbebbca"
---

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

Discussion

# [How Hoisting Works in JavaScipt](https://muchtolearn.dev/how-hoisting-works-in-javascipt?utm_source=hashnode&utm_medium=feed)

Before the code is executed, during the compilation step, variable and function declarations are moved to the top of their respective scopes. This behavior is referred to in JavaScript as hoisting. As a result, variables and functions can be defined ...

Jun 20, 2023 · 3 min read · muchtolearn.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#basics](https://hashnode.com/tag/basics)
-   [#javascript-concept](https://hashnode.com/tag/javascript-concept)

## Written by

[Tushar Joshi](https://hashnode.com/@Tushar9015)

@Tushar9015 · Delhi, India

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

## Responses 1

Markdown supported · ⌘↵ to post

[crushingCodes](https://hashnode.com/@crushingCodes)

[Jun 20, 2023](https://hashnode.com/posts/how-hoisting-works-in-javascipt/649180c8d985c2545dbebbca/comment/6491c0edc167b41645fd22a7)

Nice! TIL about Temporal Dead Zone
