---
title: "Discussion on \"Difference Between Var , Let and Const ?\" | Hashnode"
description: "Discussion on \"Difference Between Var , Let and Const ?\". Var: The scope of the variable defined with the keyword var is limited to the function within which it is defined . If it defined outside a function , the scope of the variable is global\nDefault value of var is undefined\nLet : The scope of the variab..."
url: "https://hashnode.com/posts/difference-between-var-let-and-const/66763827935d462d1888d9b0"
---

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

Discussion

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

Var: The scope of the variable defined with the keyword var is limited to the function within which it is defined . If it defined outside a function , the scope of the variable is global Default value of var is undefined Let : The scope of the variab...

Jun 22, 2024 · 1 min read · learneasyway.hashnode.dev  
Read the article

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

## Written by

[Anish sharma](https://hashnode.com/@anishsharma573)

@anishsharma573

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
