---
title: "Discussion on \"Hoisting in JavaScript\" | Hashnode"
description: "Discussion on \"Hoisting in JavaScript\". A deep dive into what hoisting is while comparing variables and functions."
url: "https://hashnode.com/posts/hoisting-in-javascript/61de5a3b4e70945324c58c8c"
---

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

Discussion

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

A deep dive into what hoisting is while comparing variables and functions.

Jan 12, 2022 · 3 min read · gautamkiran.hashnode.dev  
Updated Feb 28, 2022  
Read the article

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

## Written by

[Gautam Kiran](https://hashnode.com/@GautamKiran)

@GautamKiran

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

neoGrammer'22 | Aspiring full stack web dev

## Responses 1

Markdown supported · ⌘↵ to post

[Akshay](https://hashnode.com/@akkilog)

[Jan 12, 2022](https://hashnode.com/posts/hoisting-in-javascript/61de5a3b4e70945324c58c8c/comment/61de785b4e70945324c58fd2)

I guess there is typo in below line.

> That's why usage of let and const is recommended more than **_let_** as it helps in debugging the code much faster.

Should be **var** instead of **let**
