Skip to content

Commit 42eadf9

Browse files
authored
Merge pull request #1814 from michael-mcgee/closure-article-edit
Edit sentance syntax in closure article
2 parents c038ef4 + 9900be9 commit 42eadf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/06-advanced-functions/03-closure/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ Here's a little bit longer code:
182182
Rectangles on the right-hand side demonstrate how the global Lexical Environment changes during the execution:
183183

184184
1. When the script starts, the Lexical Environment is pre-populated with all declared variables.
185-
- Initially, they are in the "Uninitialized" state. That's a special internal state, it means that the engine knows about the variable, but won't allow to use it before `let`. It's almost the same as if the variable didn't exist.
185+
- Initially, they are in the "Uninitialized" state. That's a special internal state, it means that the engine knows about the variable, but it cannot be referenced until it has been declared with `let`. It's almost the same as if the variable didn't exist.
186186
2. Then `let phrase` definition appears. There's no assignment yet, so its value is `undefined`. We can use the variable since this moment.
187187
3. `phrase` is assigned a value.
188188
4. `phrase` changes the value.

0 commit comments

Comments
 (0)