---
title: "Discussion on \"Difference between var, let and const in JavaScript\" | Hashnode"
description: "Discussion on \"Difference between var, let and const in JavaScript\". In this article, we will learn about the main differences between var, let and const in JavaScript.\nvar:\nA var statement has two scopes, global scope and function scope. var declarations are generally hoisted.\nGlobal scope of var:\nIf we define a var ..."
url: "https://hashnode.com/posts/difference-between-var-let-and-const-in-javascript/641d9730737af097ff17ca61"
---

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

Discussion

# [Difference between var, let and const in JavaScript](https://venkybellara.io/difference-between-var-let-and-const-in-javascript?utm_source=hashnode&utm_medium=feed)

In this article, we will learn about the main differences between var, let and const in JavaScript. var: A var statement has two scopes, global scope and function scope. var declarations are generally hoisted. Global scope of var: If we define a var ...

Mar 24, 2023 · 3 min read · venkybellara.io  
Read the article

-   [#2articles1week](https://hashnode.com/tag/2articles1week)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#interview](https://hashnode.com/tag/interview)
-   [#coding](https://hashnode.com/tag/coding)

## Written by

[Venkatesh K](https://hashnode.com/@venky17)

@venky17 · Bengaluru, India

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
