commit
9e72417031
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue