---
title: "Discussion on \"Understanding → var  /  let  /  const\" | Hashnode"
description: "Discussion on \"Understanding → var  /  let  /  const\". Once you start learning JavaScript declaring variables is the first thing you learn and it can be done using 3 ways - var, let and const\nIt can be confusing at first to understand why someone would use one over the other to declare a variable, so in ..."
url: "https://hashnode.com/posts/understanding-var-let-and-const/63e8e9fb22851ab71d65c785"
---

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

Discussion

# [Understanding → var / let / const](https://abhisheky495.hashnode.dev/understanding-var-let-and-const?utm_source=hashnode&utm_medium=feed)

Once you start learning JavaScript declaring variables is the first thing you learn and it can be done using 3 ways - var, let and const It can be confusing at first to understand why someone would use one over the other to declare a variable, so in ...

Feb 12, 2023 · 4 min read · abhisheky495.hashnode.dev  
Updated Feb 16, 2023  
Read the article

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

## Written by

[Abhishek](https://hashnode.com/@abhishekY495)

@abhishekY495

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

Frontend Developer 🧑‍💻

## Responses 1

Markdown supported · ⌘↵ to post

[Raj Kishor Shaw](https://hashnode.com/@rajkishorshaw)

[Feb 12, 2023](https://hashnode.com/posts/understanding-var-let-and-const/63e8e9fb22851ab71d65c785/comment/63e90637861f30240f6e0108)

Nicely Explained 😃

[Abhishek](https://hashnode.com/@abhishekY495)

[Feb 12, 2023](https://hashnode.com/posts/understanding-var-let-and-const/63e8e9fb22851ab71d65c785/comment/63e90637861f30240f6e0108#reply-63e92708ccdc8e25be1e10b3)

Thanks Raj
