---
title: "Discussion on \"How to declare JavaScript variables: a look at let, const, and var\" | Hashnode"
description: "Discussion on \"How to declare JavaScript variables: a look at let, const, and var\". With the old JavaScript, we had only one way to declare a variable, with var, now with ES6 we have let and const. We will look into them in detail here."
url: "https://hashnode.com/posts/how-to-declare-javascript-variables-a-look-at-let-const-and-var-5d801c70c377/6133c665489de51a6a7ae656"
---

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

Discussion

# [How to declare JavaScript variables: a look at let, const, and var](https://blog.shirshendu.dev/how-to-declare-javascript-variables-a-look-at-let-const-and-var-5d801c70c377?utm_source=hashnode&utm_medium=feed)

With the old JavaScript, we had only one way to declare a variable, with var, now with ES6 we have let and const. We will look into them in detail here.

Mar 11, 2019 · 5 min read · blog.shirshendu.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#variables](https://hashnode.com/tag/variables)
-   [#es6](https://hashnode.com/tag/es6)
-   [#programming](https://hashnode.com/tag/programming)

## Written by

[Shirshendu Bhowmick](https://hashnode.com/@shirshendu)

@shirshendu · Bangalore, Karnataka, India

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

Senior Software Engineer at Coursera

Senior Software Engineer @Coursera | JavaScript | Golang | React | Ex smallcase Hobbyist Bird Photographer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
