---
title: "Discussion on \"Difference between var, const and let\" | Hashnode"
description: "Discussion on \"Difference between var, const and let\". There are 3 ways to declare a variable in Javascript: using one of the keywords var, const or let.\nPrior to ES6, var used to be the only way to declare a variable. You had no other choice. However, it had some weird and unexpected behavior, which oft..."
url: "https://hashnode.com/posts/difference-between-var-const-and-let/6276b766317fc95a74ca87fc"
---

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

Discussion

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

There are 3 ways to declare a variable in Javascript: using one of the keywords var, const or let. Prior to ES6, var used to be the only way to declare a variable. You had no other choice. However, it had some weird and unexpected behavior, which oft...

May 6, 2020 · 3 min read · hashnode.jovandjukic.com  
Read the article

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

## Written by

[Jovan](https://hashnode.com/@jovandj)

@jovandj · Zrenjanin, RS

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

Software Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
