Execution
Folder 3
my_script.js
myCounter.increment(5)
Scope objects
Folder 3
Global object
Folder 1
createCounter = <func>
myCounter = {
increment = <func>,
get = <func>
}
createCounter(100) scope
Folder 1
counter = 100
increment = <func>
get = <func>
initial = 100
increment(5) scope
Folder 1
value = 5
this