---
title: "Discussion on \"let, const and var in JavaScript\" | Hashnode"
description: "Discussion on \"let, const and var in JavaScript\". There are three different ways of declaring a variable in JavaScript :\n\nlet\n\nconst\n\nvar\n\n\nlet and const were introduced in ES6, while var is the older way of declaring variables in JavaScript.\nlet\nWe use the let keyword for variables whose value we i..."
url: "https://hashnode.com/posts/let-const-and-var-in-javascript/612e8a451dd572151d81e64b"
---

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

Discussion

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

There are three different ways of declaring a variable in JavaScript : let const var let and const were introduced in ES6, while var is the older way of declaring variables in JavaScript. let We use the let keyword for variables whose value we i...

Aug 31, 2021 · 3 min read · vishnuvnair.hashnode.dev  
Read the article

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

## Written by

[Vishnu V Nair](https://hashnode.com/@vishnuVNair)

@vishnuVNair · Bengaluru, India

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

Frontend Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
