From 9900be90a7584ba3993a84c1f3c4fa4f16098985 Mon Sep 17 00:00:00 2001 From: Michael McGee Date: Tue, 24 Mar 2020 18:04:26 +1030 Subject: [PATCH] Edit sentance syntax in closure article --- 1-js/06-advanced-functions/03-closure/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/06-advanced-functions/03-closure/article.md b/1-js/06-advanced-functions/03-closure/article.md index 74e8c3c2..1845482e 100644 --- a/1-js/06-advanced-functions/03-closure/article.md +++ b/1-js/06-advanced-functions/03-closure/article.md @@ -182,7 +182,7 @@ Here's a little bit longer code: Rectangles on the right-hand side demonstrate how the global Lexical Environment changes during the execution: 1. When the script starts, the Lexical Environment is pre-populated with all declared variables. - - 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. + - 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. 2. Then `let phrase` definition appears. There's no assignment yet, so its value is `undefined`. We can use the variable since this moment. 3. `phrase` is assigned a value. 4. `phrase` changes the value.