---
title: "Discussion on \"Lexical Scope [local memory + lexical memory of it's parent]\" | Hashnode"
description: "Discussion on \"Lexical Scope [local memory + lexical memory of it's parent]\". function outerFunction() {\nconst outerVariable = 'I am from outerFunction';\nfunction innerFunction() {\nconst innerVariable = 'I am from innerFunction';\nconsole.log(outerVariable); // Accesses `outerVariable` from the outer function's scope\nconsole.lo..."
url: "https://hashnode.com/posts/lexical-scope-local-memory-lexical-memory-of-its-parent/68746397f33fcf0a5682cfd8"
---

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

Discussion

# [Lexical Scope \[local memory + lexical memory of it's parent\]](https://lexical-scope.hashnode.dev/lexical-scope-local-memory-lexical-memory-of-its-parent?utm_source=hashnode&utm_medium=feed)

function outerFunction() { const outerVariable = 'I am from outerFunction'; function innerFunction() { const innerVariable = 'I am from innerFunction'; console.log(outerVariable); // Accesses \`outerVariable\` from the outer function's scope console.lo...

Jul 14, 2025 · 1 min read · lexical-scope.hashnode.dev  
Read the article

## Written by

[Shubhradeep](https://hashnode.com/@Shubhradeep)

@Shubhradeep · Kolkata, West Bengal, IND

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

Software Engineer

Full-Stack Developer with 1.5 years of experience building scalable, secure web applications using React, Node.js, and PostgreSQL. Skilled in REST APIs, backend architecture, authentication (JWT/JWE), and modern frontend tools. Proven ability to enhance system efficiency, SEO, and user experience.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
