---
title: "Discussion on \"Difference between var, let and const in Javascript\" | Hashnode"
description: "Discussion on \"Difference between var, let and const in Javascript\". Since the advent of ES6 in 2015, we can agree that a lot of JavaScript developers have become familiar with the use of its features.\nAlthough, this may not be entirely true, and it is possible some of  the features added may be a mystery to some.\nAmo..."
url: "https://hashnode.com/posts/difference-between-var-let-and-const-in-javascript/60a5101e5c1fcb40773653a9"
---

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

Discussion

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

Since the advent of ES6 in 2015, we can agree that a lot of JavaScript developers have become familiar with the use of its features. Although, this may not be entirely true, and it is possible some of the features added may be a mystery to some. Amo...

May 19, 2021 · 6 min read · ikivv.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#variables](https://hashnode.com/tag/variables)
-   [#programming-tips](https://hashnode.com/tag/programming-tips)
-   [#coding](https://hashnode.com/tag/coding)

## Written by

[Salami Victoria](https://hashnode.com/@ikiv)

@ikiv · Lagos, Nigeria

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

Frontend developer

## Responses 1

Markdown supported · ⌘↵ to post

[Martin Sjåstad](https://hashnode.com/@mrms)

[May 19, 2021](https://hashnode.com/posts/difference-between-var-let-and-const-in-javascript/60a5101e5c1fcb40773653a9/comment/60a55ac0b4e16849d76db260)

Now I am curious about which one I should be using. I find myself reaching for `const` most of the time. Let's be honest; 99% of the time I use const. `let` and I feel sinful, like there is something wrong in my code. How do you think about it?

[Salami Victoria](https://hashnode.com/@ikiv)

[May 19, 2021](https://hashnode.com/posts/difference-between-var-let-and-const-in-javascript/60a5101e5c1fcb40773653a9/comment/60a55ac0b4e16849d76db260#reply-60a561ebb4e16849d76db2f4)

Lol. Well, I think all works fine and you should use the one that suits your code perfectly, based on how complex your code is, the one that will give less stress and work efficiently should be the one you choose. Goodluck.
