---
title: "Discussion on \"var, let and const\" | Hashnode"
description: "Discussion on \"var, let and const\". These keywords are used to declare the variable in javascript. before ES6 we could declare variables by using only the var keyword but in ES6 let and const are introduced these have distinct roles.\nTDZ(Temporal Dead Zone) - it's the area before the d..."
url: "https://hashnode.com/posts/var-let-and-const/653b6f3ee806030c93f84d43"
---

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

Discussion

# [var, let and const](https://saurabhtechblogs.hashnode.dev/var-let-and-const?utm_source=hashnode&utm_medium=feed)

These keywords are used to declare the variable in javascript. before ES6 we could declare variables by using only the var keyword but in ES6 let and const are introduced these have distinct roles. TDZ(Temporal Dead Zone) - it's the area before the d...

Oct 27, 2023 · 2 min read · saurabhtechblogs.hashnode.dev  
Read the article

-   [#javscript](https://hashnode.com/tag/javscript)
-   [#var-let-const](https://hashnode.com/tag/var-let-const)
-   [#variable-declaration](https://hashnode.com/tag/variable-declaration)
-   [#jsinterview](https://hashnode.com/tag/jsinterview)
-   [#interviewquestions](https://hashnode.com/tag/interviewquestions)

## Written by

[SAURABH TARAGI](https://hashnode.com/@saurabh2711)

@saurabh2711 · India

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

Software Developer

I am a Frontend developer Having Experience for 4 years and currently working as a Senior Experience Engineer at Publicis Sapient.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
