---
title: "Discussion on \"what is difference between var, let & const?\" | Hashnode"
description: "Discussion on \"what is difference between var, let & const?\". Imagine you're building a Lego city. You'll need different types of bricks to construct different buildings. Similarly, in JavaScript, you need different types of variables to store different kinds of information.\nvar - The Old-School Brick\nThink of ..."
url: "https://hashnode.com/posts/what-is-difference-between-var-let-const/672f00033780916eca864ab9"
---

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

Discussion

# [what is difference between var, let & const?](https://prasad.com/what-is-difference-between-var-let-const?utm_source=hashnode&utm_medium=feed)

Imagine you're building a Lego city. You'll need different types of bricks to construct different buildings. Similarly, in JavaScript, you need different types of variables to store different kinds of information. var - The Old-School Brick Think of ...

Nov 9, 2024 · 2 min read · prasad.com  
Read the article

-   [#beginners](https://hashnode.com/tag/beginners)
-   [#js](https://hashnode.com/tag/js)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Durga Prasad](https://hashnode.com/@PrasadCoder)

@PrasadCoder

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
