---
title: "Discussion on \"Difference between variable var, let and const\" | Hashnode"
description: "Discussion on \"Difference between variable var, let and const\". In javascipt one can define variable using var let or const.  Before the introduction of ES6, JavaScript only had var to define variables. The var is the classic old way to declare variables in javascript and it can declare both local and global vari..."
url: "https://hashnode.com/posts/difference-between-variable-var-let-and-const/615491a5414f78089df3d082"
---

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

Discussion

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

In javascipt one can define variable using var let or const. Before the introduction of ES6, JavaScript only had var to define variables. The var is the classic old way to declare variables in javascript and it can declare both local and global vari...

Sep 29, 2021 · 3 min read · vinsmok.hashnode.dev  
Read the article

-   [#variables](https://hashnode.com/tag/variables)
-   [#vanilla-js-1](https://hashnode.com/tag/vanilla-js-1)
-   [#developer](https://hashnode.com/tag/developer)

## Written by

[Saahith](https://hashnode.com/@saahith)

@saahith

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
