---
title: "Discussion on \"Variable Declarations in JS - let vs const vs var\" | Hashnode"
description: "Discussion on \"Variable Declarations in JS - let vs const vs var\". Confused between let, const, and var in JavaScript? Learn the key differences, scoping rules, hoisting behavior, and best practices for declaring variables"
url: "https://hashnode.com/posts/let-const-var/687e8d2c72f2a35a87d11dcc"
---

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

Discussion

# [Variable Declarations in JS - let vs const vs var](https://pblogs.hashnode.dev/let-const-var?utm_source=hashnode&utm_medium=feed)

Confused between let, const, and var in JavaScript? Learn the key differences, scoping rules, hoisting behavior, and best practices for declaring variables

Jul 21, 2025 · 4 min read · pblogs.hashnode.dev  
Read the article

-   [#let-and-const](https://hashnode.com/tag/let-and-const)
-   [#var-let-const](https://hashnode.com/tag/var-let-const)
-   [#hoisting](https://hashnode.com/tag/hoisting)
-   [#closures-in-javascript](https://hashnode.com/tag/closures-in-javascript)
-   [#variables](https://hashnode.com/tag/variables)
-   [#constant](https://hashnode.com/tag/constant)

## Written by

[Payal Rathee](https://hashnode.com/@PR372000)

@PR372000

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

Web Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
