---
title: "Discussion on \"Difference Between Var, Let, and Const\" | Hashnode"
description: "Discussion on \"Difference Between Var, Let, and Const\". Var: Function Scope, allowing access throughout the entire function, hoisted to the top of its block scope, but not block scoped. Can be redeclared or reassigned.\nLet: Block scope ( for, while, if)- Hoisted to the top of its block but not initialized..."
url: "https://hashnode.com/posts/difference-between-var-let-and-const/655235c4dd8cc98141a71b8b"
---

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

Discussion

# [Difference Between Var, Let, and Const](https://dynamiclance.hashnode.dev/difference-between-var-let-and-const?utm_source=hashnode&utm_medium=feed)

Var: Function Scope, allowing access throughout the entire function, hoisted to the top of its block scope, but not block scoped. Can be redeclared or reassigned. Let: Block scope ( for, while, if)- Hoisted to the top of its block but not initialized...

Nov 13, 2023 · 1 min read · dynamiclance.hashnode.dev  
Read the article

## Written by

[Sajib Khan](https://hashnode.com/@sksajib)

@sksajib

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

JavaScript Explorer

Run | Jump | Roar The World

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
