---
title: "Discussion on \"3 Ways to declare variables in JavaScript: var, let, and const explained\" | Hashnode"
description: "Discussion on \"3 Ways to declare variables in JavaScript: var, let, and const explained\". At the time of writing this article there are only two popular ways of declaring variables in JavaScript: let and const, poor var is long lost in the darkness of misunderstood principles. \nThe idea behind writing this article is to try and clear up t..."
url: "https://hashnode.com/posts/3-ways-to-declare-variables-in-javascript-var-let-and-const-explained/6253d5be75dccb6f34320e3d"
---

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

Discussion

# [3 Ways to declare variables in JavaScript: var, let, and const explained](https://blog.theanshuman.dev/3-ways-to-declare-variables-in-javascript-var-let-and-const-explained?utm_source=hashnode&utm_medium=feed)

At the time of writing this article there are only two popular ways of declaring variables in JavaScript: let and const, poor var is long lost in the darkness of misunderstood principles. The idea behind writing this article is to try and clear up t...

Apr 11, 2022 · 2 min read · blog.theanshuman.dev  
Read the article

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

## Written by

[Anshuman Bhardwaj](https://hashnode.com/@anshuman-bhardwaj)

@anshuman-bhardwaj · Gurugram, India

  
[View profile](https://hashnode.com/@anshuman-bhardwaj)

Full-Stack Engineering Manager @Canoo

Hi there, this is my guide to becoming a "Sane Developer", I'll be sharing lessons from my journey both technical and personal. I've been an Intern, a tech lead, and now a Manager. I want to bring perspective from each of the roles and share what I learned in my journey. I'm Anshuman Bhardwaj and I'm an Engineering Manager at Canoo. I create technical content to share knowledge about Web development and have 10K+ readers monthly across platforms.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
