Merge pull request #3026 from IamRahulShaw/patch-1

Update article.md
This commit is contained in:
Ilya Kantor 2022-06-13 12:16:45 +02:00 committed by GitHub
commit 9e72417031
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,7 @@ We already know that a function can access variables outside of it ("outer" vari
But what happens if outer variables change since a function is created? Will the function get newer values or the old ones?
And what 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?
And what if a function is passed along as an argument and called from another place of code, will it get access to outer variables at the new place?
Let's expand our knowledge to understand these scenarios and more complex ones.