---
title: "Discussion on \"A Simple Guide to Lexical Scoping in JavaScript\" | Hashnode"
description: "Discussion on \"A Simple Guide to Lexical Scoping in JavaScript\". Introduction\nVariables in JavaScript can be accessed depending on where they are declared. If they are declared in a global scope, they can be accessed anywhere in the program but if they are declared in a local scope which may either be function sco..."
url: "https://hashnode.com/posts/a-simple-guide-to-lexical-scoping-in-javascript/64ba1ff6ba29c8f434ba2f13"
---

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

Discussion

# [A Simple Guide to Lexical Scoping in JavaScript](https://okure.hashnode.dev/a-simple-guide-to-lexical-scoping-in-javascript?utm_source=hashnode&utm_medium=feed)

Introduction Variables in JavaScript can be accessed depending on where they are declared. If they are declared in a global scope, they can be accessed anywhere in the program but if they are declared in a local scope which may either be function sco...

Jul 21, 2023 · 5 min read · okure.hashnode.dev  
Updated Aug 2, 2023  
Read the article

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

## Written by

[Okure U. Edet](https://hashnode.com/@Okurekingsley)

@Okurekingsley

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

Software developer and Law student

Hello everyone 👋 I am a software developer and a law student. I am currently learning HTML CSS, JavaScript and node.js I'll be glad to learn from and contribute to this community.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
