---
title: "Discussion on \"Understanding Var, Let and Const in JavaScript with Examples\" | Hashnode"
description: "Discussion on \"Understanding Var, Let and Const in JavaScript with Examples\". Overview\nUnlike other programming languages, like Java and C++ where we need to specify the type of variables while declaring, it is somewhat different in JavaScript.\nJavaScript limits us to declare variables only using these three keywords - the var..."
url: "https://hashnode.com/posts/understanding-var-let-and-const-in-javascript-with-examples/63fefe7ae11f080428fa7774"
---

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

Discussion

# [Understanding Var, Let and Const in JavaScript with Examples](https://blogs.sobitprasad.com/understanding-var-let-and-const-in-javascript-with-examples?utm_source=hashnode&utm_medium=feed)

Overview Unlike other programming languages, like Java and C++ where we need to specify the type of variables while declaring, it is somewhat different in JavaScript. JavaScript limits us to declare variables only using these three keywords - the var...

Mar 1, 2023 · 10 min read · blogs.sobitprasad.com  
Updated Mar 2, 2023  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#temporal-dead-zone](https://hashnode.com/tag/temporal-dead-zone)
-   [#hosting](https://hashnode.com/tag/hosting)

## Written by

[Sobit Prasad](https://hashnode.com/@sobitprasad)

@sobitprasad · India

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

Frontend Developer | Technical Writer

Hey awesome reader, I am Sobit. A Frontend Developer who likes to write sometimes and constantly seeks out innovative solutions to our day to day problems.

## Responses 5

Markdown supported · ⌘↵ to post

[Anurag Kumar](https://hashnode.com/@AnuragK24)

[Mar 2, 2023](https://hashnode.com/posts/understanding-var-let-and-const-in-javascript-with-examples/63fefe7ae11f080428fa7774/comment/6400cf3a52d0c16bb2220ebd)

Great blog, amazing write-up!

[Sobit Prasad](https://hashnode.com/@sobitprasad)

[Mar 6, 2023](https://hashnode.com/posts/understanding-var-let-and-const-in-javascript-with-examples/63fefe7ae11f080428fa7774/comment/6400cf3a52d0c16bb2220ebd#reply-640551ac87595bb6fc886475)

thank you anurag 🙌🏾

[Himanshu Kesarwani](https://hashnode.com/@himanshu800)

[Mar 2, 2023](https://hashnode.com/posts/understanding-var-let-and-const-in-javascript-with-examples/63fefe7ae11f080428fa7774/comment/6400977a52d0c16bb2220486)

Very Well Explained! Really loved it.

[Pranita Fulsundar](https://hashnode.com/@pranita)

[Mar 2, 2023](https://hashnode.com/posts/understanding-var-let-and-const-in-javascript-with-examples/63fefe7ae11f080428fa7774/comment/64007dfe52d0c16bb221ff67)

Nice read. Explanation is awesome! 👏

[Sobit Prasad](https://hashnode.com/@sobitprasad)

[Mar 2, 2023](https://hashnode.com/posts/understanding-var-let-and-const-in-javascript-with-examples/63fefe7ae11f080428fa7774/comment/64007dfe52d0c16bb221ff67#reply-64009d6e4afe53670a9e2ccb)

thankyou pranita 😄

[Chirag Taluja](https://hashnode.com/@chiragtaluja)

[Mar 1, 2023](https://hashnode.com/posts/understanding-var-let-and-const-in-javascript-with-examples/63fefe7ae11f080428fa7774/comment/63ffa5af2b647366da4d64bd)

Like the blog. Love the illustrations.

[Sobit Prasad](https://hashnode.com/@sobitprasad)

[Mar 2, 2023](https://hashnode.com/posts/understanding-var-let-and-const-in-javascript-with-examples/63fefe7ae11f080428fa7774/comment/63ffa5af2b647366da4d64bd#reply-64009d564afe53670a9e2cc0)

thankyou chirag 😄

[Abin John](https://hashnode.com/@abinjohn)

[Mar 1, 2023](https://hashnode.com/posts/understanding-var-let-and-const-in-javascript-with-examples/63fefe7ae11f080428fa7774/comment/63ff80aa2feb6b557ca99f7c)

Great read!

[Sobit Prasad](https://hashnode.com/@sobitprasad)

[Mar 2, 2023](https://hashnode.com/posts/understanding-var-let-and-const-in-javascript-with-examples/63fefe7ae11f080428fa7774/comment/63ff80aa2feb6b557ca99f7c#reply-64009d3852d0c16bb22205b4)

thankyou abin 😊
