---
title: "Discussion on \"Hoisting in Javascript\" | Hashnode"
description: "Discussion on \"Hoisting in Javascript\". What is Hoisting in JS?\nHoisting in Javascript is a behavior in which a function or variable can be used before declaration. It is the default behavior of javascript to move declarations to the top.\nVariable Hoisting\nRegarding variables and constants..."
url: "https://hashnode.com/posts/hoisting-in-javascript/6328a5ea99624fc71cd524ff"
---

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

Discussion

# [Hoisting in Javascript](https://spy.hashnode.dev/hoisting-in-javascript?utm_source=hashnode&utm_medium=feed)

What is Hoisting in JS? Hoisting in Javascript is a behavior in which a function or variable can be used before declaration. It is the default behavior of javascript to move declarations to the top. Variable Hoisting Regarding variables and constants...

Sep 19, 2022 · 2 min read · spy.hashnode.dev  
Read the article

-   [#iwritecode](https://hashnode.com/tag/iwritecode)
-   [#learncodeonline](https://hashnode.com/tag/learncodeonline)
-   [#hosting](https://hashnode.com/tag/hosting)

## Written by

[Abhishek Kumar](https://hashnode.com/@Iamabhshek)

@Iamabhshek · Rajasthan India

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
