---
title: "Discussion on \"Why using var is a bad practice in javascript?\" | Hashnode"
description: "Discussion on \"Why using var is a bad practice in javascript?\". In javascript, we declare a variable in three ways\n\nVar\n\nLet\n\nConst\n\n\nDevelopers prefer that language by which they can create predictable results but in javascript, when we use Var then, sometimes the results are not predictable. There are four pote..."
url: "https://hashnode.com/posts/why-using-var-is-a-bad-practice-in-javascript/63ebc7d16198820428b7bc28"
---

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

Discussion

# [Why using var is a bad practice in javascript?](https://kesharvani.hashnode.dev/why-using-var-is-a-bad-practice-in-javascript?utm_source=hashnode&utm_medium=feed)

In javascript, we declare a variable in three ways Var Let Const Developers prefer that language by which they can create predictable results but in javascript, when we use Var then, sometimes the results are not predictable. There are four pote...

Feb 14, 2023 · 3 min read · kesharvani.hashnode.dev  
Updated Feb 18, 2023  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#javascript-framework](https://hashnode.com/tag/javascript-framework)
-   [#javascript-library](https://hashnode.com/tag/javascript-library)
-   [#javascript-modules](https://hashnode.com/tag/javascript-modules)

## Written by

[Shubham Kesharvani](https://hashnode.com/@Kesharvani)

@Kesharvani · India

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

Software Developer

Exploring and documenting my journey of web development.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
