---
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)\". by Himanshu Kesarwani."
url: "https://hashnode.com/posts/understanding-var-let-and-const-in-javascript-with-examples/63984bf970d818b7aaba3c25"
---

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

Discussion

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

by Himanshu Kesarwani.

Dec 13, 2022 · 7 min read · himanshukesarwani.hashnode.dev  
Updated Dec 25, 2022  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#development](https://hashnode.com/tag/development)
-   [#var-let-in-javascript](https://hashnode.com/tag/var-let-in-javascript)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

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

@himanshu800 · United States of Mars

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

NeogCamp 23 | Frontend Dev | JavaScript ♥ | ReactJs ♥ | IGNOU MCA 24 | Aspiring FullStack Dev | Freelancer | Technical Writer | Noob Cook | Sleeps on Kindle.

## Responses 4

Markdown supported · ⌘↵ to post

[Anand Baraik](https://hashnode.com/@anandbaraik)

[Jan 29, 2023](https://hashnode.com/posts/understanding-var-let-and-const-in-javascript-with-examples/63984bf970d818b7aaba3c25/comment/63d62d4573b9fa3341b926dc)

Nicely explained brother. Liked it.

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

[Jan 29, 2023](https://hashnode.com/posts/understanding-var-let-and-const-in-javascript-with-examples/63984bf970d818b7aaba3c25/comment/63d62d4573b9fa3341b926dc#reply-63d66620d6ba08377e94840a)

Thank You Anand!

[Syed Fahad](https://hashnode.com/@SyedFahad)

[Jan 23, 2023](https://hashnode.com/posts/understanding-var-let-and-const-in-javascript-with-examples/63984bf970d818b7aaba3c25/comment/63cea6c58a722dcdc1f3c803)

Amazing and Subtle Explanation. Loved it ❤️

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

[Jan 28, 2023](https://hashnode.com/posts/understanding-var-let-and-const-in-javascript-with-examples/63984bf970d818b7aaba3c25/comment/63cea6c58a722dcdc1f3c803#reply-63d5450e538ca42683435b81)

Thank you Syed!

[Mimi Ant](https://hashnode.com/@mimsy)

[Dec 25, 2022](https://hashnode.com/posts/understanding-var-let-and-const-in-javascript-with-examples/63984bf970d818b7aaba3c25/comment/63a7a4d8b1011ed9ec6cf7a4)

Nice explanation. Simple and easy to follow. Perfect!

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

[Dec 25, 2022](https://hashnode.com/posts/understanding-var-let-and-const-in-javascript-with-examples/63984bf970d818b7aaba3c25/comment/63a7a4d8b1011ed9ec6cf7a4#reply-63a7eb0eb1011ed9ec6cfd84)

Thank You! I'm glad you liked it!

[Abhinav Kesarwani](https://hashnode.com/@Keshabhinav)

[Dec 13, 2022](https://hashnode.com/posts/understanding-var-let-and-const-in-javascript-with-examples/63984bf970d818b7aaba3c25/comment/63985fb79c2b1a31cc399870)

Liked it!

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

[Dec 13, 2022](https://hashnode.com/posts/understanding-var-let-and-const-in-javascript-with-examples/63984bf970d818b7aaba3c25/comment/63985fb79c2b1a31cc399870#reply-639878239c2b1a31cc399d9b)

Thank you!
