---
title: "Discussion on \"All You Need to Know about var, let, & const\" | Hashnode"
description: "Discussion on \"All You Need to Know about var, let, & const\". Before 2015, using the var keyword was the only way to declare a JavaScript variable.\nThe 2015 version of JavaScript (ES6) allows the const keyword to define a variable that cannot be reassigned, and the let keyword defines a variable with restricted..."
url: "https://hashnode.com/posts/all-you-need-to-know-about-var-let-and-const/60added7557cc70e51212103"
---

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

Discussion

# [All You Need to Know about var, let, & const](https://minhajul.hashnode.dev/all-you-need-to-know-about-var-let-and-const?utm_source=hashnode&utm_medium=feed)

Before 2015, using the var keyword was the only way to declare a JavaScript variable. The 2015 version of JavaScript (ES6) allows the const keyword to define a variable that cannot be reassigned, and the let keyword defines a variable with restricted...

May 26, 2021 · 4 min read · minhajul.hashnode.dev  
Read the article

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

## Written by

[Minhajul Karim](https://hashnode.com/@mkr)

@mkr

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

Aspiring Full-Stack JS Developer

## Responses 1

Markdown supported · ⌘↵ to post

[Saurabh Mhatre](https://hashnode.com/@saurabhmhtr)

[May 26, 2021](https://hashnode.com/posts/all-you-need-to-know-about-var-let-and-const/60added7557cc70e51212103/comment/60ae17932ef63a174032c639)

Great article. Keep it up👍🏽

[Minhajul Karim](https://hashnode.com/@mkr)

[May 26, 2021](https://hashnode.com/posts/all-you-need-to-know-about-var-let-and-const/60added7557cc70e51212103/comment/60ae17932ef63a174032c639#reply-60ae79725c02001765cf319f)

Thank you [Saurabh](https://hashnode.com/posts/all-you-need-to-know-about-var-let-and-const/@saurabhmhtr)! :)
