---
title: "Discussion on \"What is up with var, let and const? What the hell is the difference between these three?\" | Hashnode"
description: "Discussion on \"What is up with var, let and const? What the hell is the difference between these three?\". With ES2016 came two new methods to declare variable i.e. let and const. Before that the developers had access to only var(I feel bad for them, no kidding). \nSo, what's the catch here? Why are there three different ways to declare variables? Wasn't J..."
url: "https://hashnode.com/posts/what-is-up-with-var-let-and-const-what-the-hell-is-the-difference-between-these-three/611bdaa6888ca15f5d392651"
---

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

Discussion

# [What is up with var, let and const? What the hell is the difference between these three?](https://shubhracodes.hashnode.dev/what-is-up-with-var-let-and-const-what-the-hell-is-the-difference-between-these-three?utm_source=hashnode&utm_medium=feed)

With ES2016 came two new methods to declare variable i.e. let and const. Before that the developers had access to only var(I feel bad for them, no kidding). So, what's the catch here? Why are there three different ways to declare variables? Wasn't J...

Aug 17, 2021 · 5 min read · shubhracodes.hashnode.dev  
Read the article

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

## Written by

[Shubhra Agarwal](https://hashnode.com/@ShubhraCodes)

@ShubhraCodes · Rajasthan, India

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

MERN Stack developer

Started as tech enthusiast, later developed keen interest in programming. I have always been interested in learning new technical things, solving problems. Started web development in June,2020. Currently a full stack web and app developer, highly motivated to collaborate with someone. If you are up for some projects, just let me know! Currently getting my hands dirty with Machine Learning.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
