---
title: "Discussion on \"Variable Hoisting in JavaScript\" | Hashnode"
description: "Discussion on \"Variable Hoisting in JavaScript\". Hoisting is a default behaviour in JavaScript where all the declarations (variables & functions) are moved to the top of the current scope. I’m gonna discuss on variable hoisting today.\nLet’s understand the variable hoisting with the below sample.\na ..."
url: "https://hashnode.com/posts/variable-hoisting-in-javascript/6322bbfc5483096daa0ad201"
---

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

Discussion

# [Variable Hoisting in JavaScript](https://blogsfromrakesh.hashnode.dev/variable-hoisting-in-javascript?utm_source=hashnode&utm_medium=feed)

Hoisting is a default behaviour in JavaScript where all the declarations (variables & functions) are moved to the top of the current scope. I’m gonna discuss on variable hoisting today. Let’s understand the variable hoisting with the below sample. a ...

Sep 15, 2022 · 1 min read · blogsfromrakesh.hashnode.dev  
Read the article

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

## Written by

[Rakesh Kumar Shaw](https://hashnode.com/@rakeshshaw)

@rakeshshaw · Bengaluru, India

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

Senior Software Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
