---
title: "Discussion on \"Difference between var, let and const in JavaScript\" | Hashnode"
description: "Discussion on \"Difference between var, let and const in JavaScript\". JavaScript originally had only one variable type var. JavaScript introduced new variable declarations in ES6.\n\nlet\nconst\n\nNow we have variable declarations let, var and const. The inevitable question is when to use what?\nBefore we answer this questio..."
url: "https://hashnode.com/posts/difference-between-var-let-and-const-in-javascript/62c16c96ccecfb25bbc75297"
---

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

Discussion

# [Difference between var, let and const in JavaScript](https://yogeshpendse.hashnode.dev/difference-between-var-let-and-const-in-javascript?utm_source=hashnode&utm_medium=feed)

JavaScript originally had only one variable type var. JavaScript introduced new variable declarations in ES6. let const Now we have variable declarations let, var and const. The inevitable question is when to use what? Before we answer this questio...

Jul 3, 2022 · 3 min read · yogeshpendse.hashnode.dev  
Read the article

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

## Written by

[Yogesh Pendse](https://hashnode.com/@yogeshpendse)

@yogeshpendse

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

Trying to build something impactful

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
