---
title: "Discussion on \"Understanding the Concept of Hoisting in JavaScript\" | Hashnode"
description: "Discussion on \"Understanding the Concept of Hoisting in JavaScript\". What is Hoisting and How it affects var, let, const, and functions in JavaScript?"
url: "https://hashnode.com/posts/hoisting-in-javascript/64ce5295c9d141c10f5d4874"
---

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

Discussion

# [Understanding the Concept of Hoisting in JavaScript](https://akashwrites.com/hoisting-in-javascript?utm_source=hashnode&utm_medium=feed)

What is Hoisting and How it affects var, let, const, and functions in JavaScript?

Aug 5, 2023 · 7 min read · akashwrites.com  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#javascript-hoisting](https://hashnode.com/tag/javascript-hoisting)
-   [#hoisting](https://hashnode.com/tag/hoisting)
-   [#javascript-fundamentals](https://hashnode.com/tag/javascript-fundamentals)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)

## Written by

[Akash Raj](https://hashnode.com/@Akash161)

@Akash161 · India

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

Software Developer || JavaScript || React.js || React Native

I am a developer from India working professionally from past 2.5 years and I'm here to share my knowledge in JavaScript because I believe it's a beautiful language and most people interpret it wrong. I also write about React Native

## Responses 2

Markdown supported · ⌘↵ to post

[Ivan Avila caceres](https://hashnode.com/@ahyorya)

[Aug 11, 2023](https://hashnode.com/posts/hoisting-in-javascript/64ce5295c9d141c10f5d4874/comment/64d6c7aad459393b57af81ee)

so your printing the function? xd

[Akash Raj](https://hashnode.com/@Akash161)

[Aug 12, 2023](https://hashnode.com/posts/hoisting-in-javascript/64ce5295c9d141c10f5d4874/comment/64d6c7aad459393b57af81ee#reply-64d7767dd459393b57af9108)

Yes Just to show that during the First Phase of the execution context, the function is assigned the complete function as it is. And I have printed it before calling it to show what that function holds.

[Ankush Raj](https://hashnode.com/@ankush121)

[Aug 7, 2023](https://hashnode.com/posts/hoisting-in-javascript/64ce5295c9d141c10f5d4874/comment/64d0c5956644e2f8eb7f9246)

Very informative

[Akash Raj](https://hashnode.com/@Akash161)

[Aug 7, 2023](https://hashnode.com/posts/hoisting-in-javascript/64ce5295c9d141c10f5d4874/comment/64d0c5956644e2f8eb7f9246#reply-64d0e159fd5742f91b9721e6)

Thank you so much
