---
title: "Discussion on \"JavaScript Hoisting Explained: How var, let, and const Work\" | Hashnode"
description: "Discussion on \"JavaScript Hoisting Explained: How var, let, and const Work\". Hoisting in JavaScript\nHoisting is a behavior in which variable and function declarations are moved (or \"hoisted\") to the top of their containing scope (either the global scope or function scope) before the code is executed. This means that you can u..."
url: "https://hashnode.com/posts/javascript-hoisting-explained-how-var-let-and-const-work/671092fa54d95766bd210d74"
---

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

Discussion

# [JavaScript Hoisting Explained: How var, let, and const Work](https://nishanthan.hashnode.dev/javascript-hoisting-explained-how-var-let-and-const-work?utm_source=hashnode&utm_medium=feed)

Hoisting in JavaScript Hoisting is a behavior in which variable and function declarations are moved (or "hoisted") to the top of their containing scope (either the global scope or function scope) before the code is executed. This means that you can u...

Oct 17, 2024 · 4 min read · nishanthan.hashnode.dev  
Read the article

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

## Written by

[Nishanthan Karunakaran](https://hashnode.com/@nishanthan)

@nishanthan

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

An Software Engineer who loves to build end to end working products

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
