---
title: "Discussion on \"Keywords: Var vs Let vs Const in JS:\" | Hashnode"
description: "Discussion on \"Keywords: Var vs Let vs Const in JS:\". In JavaScript, let, const, and var are used to declare variables, but they have some important differences in terms of scoping, hoisting, and reassigning:\nVar:\n\nFunction-scoped: Variables declared with var are function-scoped, which means they are on..."
url: "https://hashnode.com/posts/keywords-var-vs-let-vs-const-in-js/650bf34daa0829bbd5cd52f8"
---

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

Discussion

# [Keywords: Var vs Let vs Const in JS:](https://gudiyagaur.hashnode.dev/keywords-var-vs-let-vs-const-in-js?utm_source=hashnode&utm_medium=feed)

In JavaScript, let, const, and var are used to declare variables, but they have some important differences in terms of scoping, hoisting, and reassigning: Var: Function-scoped: Variables declared with var are function-scoped, which means they are on...

Sep 21, 2023 · 2 min read · gudiyagaur.hashnode.dev  
Updated Oct 2, 2023  
Read the article

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

## Written by

[Gudiya Kumari](https://hashnode.com/@GudiyaGaur)

@GudiyaGaur · Champaran , Bihar, India

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

Software Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
