Skip to content

Commit fbf443e

Browse files
committed
minor fixes
1 parent 2bf8a27 commit fbf443e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
JavaScript is a very function-oriented language. It gives us a lot of freedom. A function can be created at any moment, passed as an argument to another function, and then called from a totally different place of code later.
55

6-
We already know that a function can access variables outside of it.
6+
We already know that a function can access variables outside of it ("outer" variables).
77

8-
But what happens if these "outer" variables change since a function is created? Will the function see newer values the old ones?
8+
But what happens if outer variables change since a function is created? Will the function get newer values or the old ones?
99

1010
And if a function is passed along as a parameter and called from another place of code, will it get access to outer variables at the new place?
1111

0 commit comments

Comments
 (0)