---
title: "Discussion on \"Local vs Global variables in JavaScript\" | Hashnode"
description: "Discussion on \"Local vs Global variables in JavaScript\". borders borders everywhere..."
url: "https://hashnode.com/posts/local-vs-global-variables-in-javascript/63ed6b1e3fa8ff4ff00981b1"
---

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

Discussion

# [Local vs Global variables in JavaScript](https://dhawalpandya01.hashnode.dev/local-vs-global-variables-in-javascript?utm_source=hashnode&utm_medium=feed)

borders borders everywhere...

Feb 15, 2023 · 5 min read · dhawalpandya01.hashnode.dev  
Read the article

-   [#global](https://hashnode.com/tag/global)
-   [#variables](https://hashnode.com/tag/variables)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#local](https://hashnode.com/tag/local)

## Written by

[Dhawal Pandya](https://hashnode.com/@dhawalpandya01)

@dhawalpandya01 · India

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

Writer | Coder

Engineering @ Bolt

## Responses 1

Markdown supported · ⌘↵ to post

[Saqib](https://hashnode.com/@iamsaqib24)

[Feb 16, 2023](https://hashnode.com/posts/local-vs-global-variables-in-javascript/63ed6b1e3fa8ff4ff00981b1/comment/63ee5d7946e2f1644c4f1b2a)

Nicely written 👏
