---
title: "Discussion on \"var vs let vs const in depth in JavaScript\" | Hashnode"
description: "Discussion on \"var vs let vs const in depth in JavaScript\". Let's explore how to declare variables in JavaScript and understand the key differences between them.\nThere are three ways to declare a variable in JavaScript.\n\nvar - The Old-School Way\n\nlet - The Block-Scoped Champion\n\nconst - For Values That Won't ..."
url: "https://hashnode.com/posts/var-vs-let-vs-const-in-depth-in-javascript/65e814f0db455633ca913a46"
---

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

Discussion

# [var vs let vs const in depth in JavaScript](https://janvi01.hashnode.dev/var-vs-let-vs-const-in-depth-in-javascript?utm_source=hashnode&utm_medium=feed)

Let's explore how to declare variables in JavaScript and understand the key differences between them. There are three ways to declare a variable in JavaScript. var - The Old-School Way let - The Block-Scoped Champion const - For Values That Won't ...

Mar 6, 2024 · 3 min read · janvi01.hashnode.dev  
Updated May 6, 2024  
Read the article

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

## Written by

[Janvi Bajoria](https://hashnode.com/@janvi01)

@janvi01 · India

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

Outreachy intern @Mozilla | Open Source Enthusiast

Here you will find my blogs related to tech and experiences.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
