Execution
Folder 3
my_script.js
Scope objects
Folder 3
Global object
Folder 1
createCounter = <func>
myCounter1 = {
increment = <func>,
get = <func>
}
myCounter2 = {
increment = <func>,
get = <func>
}
createCounter(100) scope
Folder 1
counter = 100
increment = <func>
get = <func>
initial = 100
createCounter(200) scope
Folder 1
counter = 200
increment = <func>
get = <func>
initial = 200