---
title: "Discussion on \"What's the difference between var, const and let\" | Hashnode"
description: "Discussion on \"What's the difference between var, const and let\". The quick answer:\n\nvar has a different \"scope\" and it's normally better to use const and let\nconst is for variables that will not be updated\nvar is for variables that will be updated\n\nVar\nBefore const and let the only way to declare a variable was wi..."
url: "https://hashnode.com/posts/whats-the-difference-between-var-const-and-let/61f01a17e247b2151e61f0cd"
---

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

Discussion

# [What's the difference between var, const and let](https://johnpalmgren.hashnode.dev/whats-the-difference-between-var-const-and-let?utm_source=hashnode&utm_medium=feed)

The quick answer: var has a different "scope" and it's normally better to use const and let const is for variables that will not be updated var is for variables that will be updated Var Before const and let the only way to declare a variable was wi...

Jan 25, 2022 · 2 min read · johnpalmgren.hashnode.dev  
Read the article

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

## Written by

[John Palmgren](https://hashnode.com/@JohnPalmgren)

@JohnPalmgren · UK

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

Hello you wonderful people. I'm a self-taught web developer and I want to share my journey with you. I'm currently doing a webdev Bootcamp and I will be sharing my insights here as well tutorials on what I'm learning. I have a writing degree and I'm excited about exploring the intersection between technology and writing.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
