---
title: "Discussion on \"Var vs. Let vs. Const: What's the difference?\" | Hashnode"
description: "Discussion on \"Var vs. Let vs. Const: What's the difference?\". Understand the difference between var, let, and const in JavaScript."
url: "https://hashnode.com/posts/var-vs-let-vs-const-whats-the-difference/64f54f0a0da4e6ccaff79243"
---

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

Discussion

# [Var vs. Let vs. Const: What's the difference?](https://devhubcommunity.hashnode.dev/var-vs-let-vs-const-whats-the-difference?utm_source=hashnode&utm_medium=feed)

Understand the difference between var, let, and const in JavaScript.

Sep 4, 2023 · 6 min read · devhubcommunity.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#hoisting](https://hashnode.com/tag/hoisting)
-   [#scope](https://hashnode.com/tag/scope)
-   [#var-let-const](https://hashnode.com/tag/var-let-const)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Mohit Pandey](https://hashnode.com/@mohitHere)

@mohitHere

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

## Responses 3

Markdown supported · ⌘↵ to post

[Md Abid Hussain](https://hashnode.com/@mdabidhussain)

[Sep 13, 2023](https://hashnode.com/posts/var-vs-let-vs-const-whats-the-difference/64f54f0a0da4e6ccaff79243/comment/6501c8241eb07cdc46663d1a)

Great

[Priyanshu Katyayni](https://hashnode.com/@Priyanshu229)

[Sep 4, 2023](https://hashnode.com/posts/var-vs-let-vs-const-whats-the-difference/64f54f0a0da4e6ccaff79243/comment/64f5fda6f6310e9375f964f0)

Very useful.

[Mohit Pandey](https://hashnode.com/@mohitHere)

[Sep 4, 2023](https://hashnode.com/posts/var-vs-let-vs-const-whats-the-difference/64f54f0a0da4e6ccaff79243/comment/64f5fda6f6310e9375f964f0#reply-64f5fec53e854993e754b82f)

Thank you🙌

[Melih G.](https://hashnode.com/@MelihGul)

[Sep 4, 2023](https://hashnode.com/posts/var-vs-let-vs-const-whats-the-difference/64f54f0a0da4e6ccaff79243/comment/64f5acefb2147985ab4ef50e)

useful post. thanks.

[Varun Kumawat](https://hashnode.com/@thisisvarun)

[Sep 4, 2023](https://hashnode.com/posts/var-vs-let-vs-const-whats-the-difference/64f54f0a0da4e6ccaff79243/comment/64f5acefb2147985ab4ef50e#reply-64f5ce58ceed4f9345bc3604)

Glad you found it useful!
