---
title: "Discussion on \"Demystifying JavaScript Hoisting: How var, let & const Behave\" | Hashnode"
description: "Discussion on \"Demystifying JavaScript Hoisting: How var, let & const Behave\". 1. What is JavaScript Hoisting?\nHoisting refers to JavaScript's default behavior of moving declarations (not initializations) to the top of the scope before code execution. Essentially, when the code runs, variable and function declarations are proce..."
url: "https://hashnode.com/posts/demystifying-javascript-hoisting-how-var-let-const-behave/66dd31d1584f0f1fcf3f85ec"
---

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

Discussion

# [Demystifying JavaScript Hoisting: How var, let & const Behave](https://bytebybytelearning.hashnode.dev/demystifying-javascript-hoisting-how-var-let-const-behave?utm_source=hashnode&utm_medium=feed)

1\. What is JavaScript Hoisting? Hoisting refers to JavaScript's default behavior of moving declarations (not initializations) to the top of the scope before code execution. Essentially, when the code runs, variable and function declarations are proce...

Sep 8, 2024 · 5 min read · bytebybytelearning.hashnode.dev  
Read the article

-   [#hoisting-in-js](https://hashnode.com/tag/hoisting-in-js)
-   [#var-hoisting](https://hashnode.com/tag/var-hoisting)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#hoisting](https://hashnode.com/tag/hoisting)
-   [#javascript-hoisting](https://hashnode.com/tag/javascript-hoisting)

## Written by

[Piyush kant](https://hashnode.com/@piyush3dxyz)

@piyush3dxyz

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
