Update article.md

Punctuation marks fixes
This commit is contained in:
hrodward 2019-10-16 10:56:28 +02:00 committed by GitHub
parent 95f61eeb59
commit 994c76ba8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -184,8 +184,8 @@ sayHi(); // Pete
The execution flow of the code above: The execution flow of the code above:
1. The global Lexical Environment has `name: "John"`. 1. The global Lexical Environment has `name: "John"`.
2. At the line `(*)` the global variable is changed, now it has `name: "Pete"`. 2. At the line `(*)` the global variable is changed. Now it has `name: "Pete"`.
3. When the function `sayHi()`, is executed and takes `name` from outside. Here that's from the global Lexical Environment where it's already `"Pete"`. 3. When the function `sayHi()` is executed it takes `name` from outside, the global Lexical Environment, where its value is already `"Pete"`.
```smart header="One call -- one Lexical Environment" ```smart header="One call -- one Lexical Environment"