---
title: "Discussion on \"Hoisting in JavaScript - What exactly does this mean?\" | Hashnode"
description: "Discussion on \"Hoisting in JavaScript - What exactly does this mean?\". The concept of hoisting in JavaScript is simple but you may have been taught wrongly."
url: "https://hashnode.com/posts/hoisting-in-javascript-what-exactly-does-this-mean/645312cab5faba339b042307"
---

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

Discussion

# [Hoisting in JavaScript - What exactly does this mean?](https://sleekcodes.hashnode.dev/hoisting-in-javascript-what-exactly-does-this-mean?utm_source=hashnode&utm_medium=feed)

The concept of hoisting in JavaScript is simple but you may have been taught wrongly.

May 4, 2023 · 7 min read · sleekcodes.hashnode.dev  
Updated Sep 24, 2024  
Read the article

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

## Written by

[Austin Asoluka](https://hashnode.com/@sleekcodes)

@sleekcodes · Lagos, Nigeria

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

FullStack Developer.

Self taught FullStack Web Developer. I'm in love with JavaScript.

## Responses 7

Markdown supported · ⌘↵ to post

[Tadeyon Oke](https://hashnode.com/@Big-Dawg-Leo)

[Sep 24, 2024](https://hashnode.com/posts/hoisting-in-javascript-what-exactly-does-this-mean/645312cab5faba339b042307/comment/66f2f15f6d7d4c35e3ce948c)

Pretty insightful for anyone learning for the first time. Thanks for sharing

[Omayuku Oritsetsolayemi](https://hashnode.com/@Tso4la1)

[May 6, 2023](https://hashnode.com/posts/hoisting-in-javascript-what-exactly-does-this-mean/645312cab5faba339b042307/comment/64568af836873323f6d73c12)

Good evening sir I am grateful for the article but do mind if I may ask according to statement that variables created with the var key word are not listed among the ECMAScript specifications as hoist-able declaration (please don’t mind if I paraphrase), what then are the listed key words in ECMAScript that are hoist-able

[Austin Asoluka](https://hashnode.com/@sleekcodes)

[May 6, 2023](https://hashnode.com/posts/hoisting-in-javascript-what-exactly-does-this-mean/645312cab5faba339b042307/comment/64568af836873323f6d73c12#reply-64568e6536873323f6d73c9e)

Good question, Oritsetsolayemi.

Kindly refer to the link to the ECMAScript specification provided in the article for this information.

[idjenughwa ruona](https://hashnode.com/@ruona543)

[May 5, 2023](https://hashnode.com/posts/hoisting-in-javascript-what-exactly-does-this-mean/645312cab5faba339b042307/comment/64548882b1081208fcf31a1f)

Now the concept of hoisting has become a lot clearer. Thank you for this piece.

[Faruq Olanrewaju](https://hashnode.com/@Starfao)

[May 4, 2023](https://hashnode.com/posts/hoisting-in-javascript-what-exactly-does-this-mean/645312cab5faba339b042307/comment/6454222bf475a1092cbd793c)

It's really an insightful piece sir. Thanks sir.

[Donice Ubaru](https://hashnode.com/@donice)

[May 4, 2023](https://hashnode.com/posts/hoisting-in-javascript-what-exactly-does-this-mean/645312cab5faba339b042307/comment/6453d16eb5d834071de88e8c)

Thank you Austin

[Austin Asoluka](https://hashnode.com/@sleekcodes)

[May 4, 2023](https://hashnode.com/posts/hoisting-in-javascript-what-exactly-does-this-mean/645312cab5faba339b042307/comment/6453d16eb5d834071de88e8c#reply-6453d54ab5d834071de88efb)

😊 You're welcome.

[Saurabh Singh](https://hashnode.com/@Singh1203)

[May 4, 2023](https://hashnode.com/posts/hoisting-in-javascript-what-exactly-does-this-mean/645312cab5faba339b042307/comment/6453a4d3b7c65bffda760ee1)

Wow ! Just learned a new concept. Thank you for writing.

[Austin Asoluka](https://hashnode.com/@sleekcodes)

[May 4, 2023](https://hashnode.com/posts/hoisting-in-javascript-what-exactly-does-this-mean/645312cab5faba339b042307/comment/6453a4d3b7c65bffda760ee1#reply-6453b7df82cc5401ae86d779)

Thank you for reading, Saurabh.

[Oghenefejiro Gbaje](https://hashnode.com/@Taddy)

[May 4, 2023](https://hashnode.com/posts/hoisting-in-javascript-what-exactly-does-this-mean/645312cab5faba339b042307/comment/645392b6b7c65bffda760c57)

Thanks for taking the time to explain these concepts, but there is something I didn't get correctly.

You disagreed with the idea that variables created with the let and const keywords are not hoisted, and the reason you gave was that the memory (Script VO) is aware of variables created with the let and const keywords.

If I may ask, does it mean hoisting also occurs even when you do not get to access variables created with the let keyword?

[Austin Asoluka](https://hashnode.com/@sleekcodes)

[May 4, 2023](https://hashnode.com/posts/hoisting-in-javascript-what-exactly-does-this-mean/645312cab5faba339b042307/comment/645392b6b7c65bffda760c57#reply-6453976f913caa000bc47a62)

1.  You get to access them but after the line where it is defined.
    
2.  There are three behaviours that characterises hoisting. Variables create with let and const keywords exhibit the third behaviour and these things happen during the creation phase.
    
3.  The idea of hoisting being associated with the var keyword has been popularised but it is not entirely the truth.
    

I believe the way I have captured hoisting as a concept is a more accurate way to describe it.
