---
title: "Discussion on \"Understanding Scope in Javascript\" | Hashnode"
description: "Discussion on \"Understanding Scope in Javascript\". Scope in js\nIf you'd like to code in JavaScript, understanding the scope of variables is a must.\nSo before understaning what is scope lets see some code snippets and examples so that we can understand scope in a better way\nconst a=1;\nconsole.log(a); ..."
url: "https://hashnode.com/posts/understanding-scope-in-javascript/62ab16172b2b09182b655bfc"
---

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

Discussion

# [Understanding Scope in Javascript](https://suryxks.hashnode.dev/understanding-scope-in-javascript?utm_source=hashnode&utm_medium=feed)

Scope in js If you'd like to code in JavaScript, understanding the scope of variables is a must. So before understaning what is scope lets see some code snippets and examples so that we can understand scope in a better way const a=1; console.log(a); ...

Jun 16, 2022 · 4 min read · suryxks.hashnode.dev  
Read the article

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

## Written by

[Surya](https://hashnode.com/@suryxks)

@suryxks

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

Web Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
