---
title: "Discussion on \"let vs var vs const\" | Hashnode"
description: "Discussion on \"let vs var vs const\". I see a lot of beginners get confused while using var, let, and const. Even when I was learning about it, I was also confused.\nLet's understand the usage of these three one by one with differences\nFunction Scope\nvar, let , and const all are function ..."
url: "https://hashnode.com/posts/let-vs-var-vs-const/62d8d2563df6e54ab8e5d471"
---

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

Discussion

# [let vs var vs const](https://sharmaryan.hashnode.dev/let-vs-var-vs-const?utm_source=hashnode&utm_medium=feed)

I see a lot of beginners get confused while using var, let, and const. Even when I was learning about it, I was also confused. Let's understand the usage of these three one by one with differences Function Scope var, let , and const all are function ...

Jul 21, 2022 · 4 min read · sharmaryan.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#var-let-const](https://hashnode.com/tag/var-let-const)
-   [#js](https://hashnode.com/tag/js)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)

## Written by

[Aryan Sharma](https://hashnode.com/@sharmaryan)

@sharmaryan

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

frontend developer

## Responses 1

Markdown supported · ⌘↵ to post

[Vishal Kumar](https://hashnode.com/@thisisvishal)

[Jul 21, 2022](https://hashnode.com/posts/let-vs-var-vs-const/62d8d2563df6e54ab8e5d471/comment/62d97a4059f0dc59d51f06fe)

Nice explanations.
