mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-31 04:59:50 +02:00
Added description and resources to Lexical Scoping - JavaScript Roadmap (#1688)
* Added description and resources * Updated the link's href * Added more links
This commit is contained in:
@@ -1 +1,8 @@
|
||||
# Lexical scoping
|
||||
# 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.
|
||||
|
||||
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
|
||||
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.codeguage.com/courses/js/functions-closures#What_is_a_lexical_environment'>What is a lexical environment? - JavaScript - CodeGuage</BadgeLink>
|
||||
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://developer.mozilla.org/en-US/docs/Web/JavaScript/Closures#lexical_scoping'>Lexical scoping - JavaScript - MDN</BadgeLink>
|
||||
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.freecodecamp.org/news/javascript-lexical-scope-tutorial/'>Lexical Scope in JavaScript – What Exactly Is Scope in JS?</BadgeLink>
|
||||
|
Reference in New Issue
Block a user