From e871dc063d7727e1ef4ae0060e9ee78efac24ee6 Mon Sep 17 00:00:00 2001 From: CodeGuage <99533223+codeguage-code@users.noreply.github.com> Date: Sun, 4 Sep 2022 19:00:44 +0500 Subject: [PATCH] Added description and resources to Lexical Scoping - JavaScript Roadmap (#1688) * Added description and resources * Updated the link's href * Added more links --- .../105-scope-and-function-stack/101-lexical-scoping.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/content/roadmaps/106-javascript/content/109-javascript-functions/105-scope-and-function-stack/101-lexical-scoping.md b/content/roadmaps/106-javascript/content/109-javascript-functions/105-scope-and-function-stack/101-lexical-scoping.md index b9afbfa35..df348e03d 100644 --- a/content/roadmaps/106-javascript/content/109-javascript-functions/105-scope-and-function-stack/101-lexical-scoping.md +++ b/content/roadmaps/106-javascript/content/109-javascript-functions/105-scope-and-function-stack/101-lexical-scoping.md @@ -1 +1,8 @@ -# Lexical scoping \ No newline at end of file +# Lexical scoping + +Before one can make intuition of closures in JavaScript, it's important to first get the hang of the term '**_lexical environment_**'. In simple words, the lexical environment for a function `f` simply refers to the environment enclosing that function's definition in the source code. + +Free Content +What is a lexical environment? - JavaScript - CodeGuage +Lexical scoping - JavaScript - MDN +Lexical Scope in JavaScript – What Exactly Is Scope in JS?