---
title: "Discussion on \"JavaScript Closure Tutorial – How Closures and Lexical Scope Work in JS\" | Hashnode"
description: "Discussion on \"JavaScript Closure Tutorial – How Closures and Lexical Scope Work in JS\". By Dave Gray\nIn JavaScript, people often confuse closures with lexical scope.\nLexical scope is an important part of closures, but it is not a closure by itself.\nClosures are an advanced concept that is also a frequent topic of technical interviews.\nY..."
url: "https://hashnode.com/posts/javascript-closure-lexical-scope/66d45e0d230dff01669057cd"
---

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

Discussion

# [JavaScript Closure Tutorial – How Closures and Lexical Scope Work in JS](https://freecodecamp.org/news/javascript-closure-lexical-scope?utm_source=hashnode&utm_medium=feed)

By Dave Gray In JavaScript, people often confuse closures with lexical scope. Lexical scope is an important part of closures, but it is not a closure by itself. Closures are an advanced concept that is also a frequent topic of technical interviews. Y...

Jun 28, 2021 · 3 min read · freecodecamp.org  
Read the article

-   [#closure](https://hashnode.com/tag/closure)
-   [#coding](https://hashnode.com/tag/coding)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#lexical-scoping](https://hashnode.com/tag/lexical-scoping)
-   [#programming](https://hashnode.com/tag/programming)
-   [#software-development](https://hashnode.com/tag/software-development)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

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

@freeCodeCamp · Just here on Earth... for now

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

Learn to code. Build projects. Earn certifications—All for free.

Learn to code. Build projects. Earn certifications—All for free.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
