You Say about the myScope variable that you defined outside the
anonymous function it's the same variable that you defined inside anonymous
function and the value of variable is temporary change.
but this is not true
because the two variable have the different memory location not the same
because in anonymous function you add the keyword var before the myScope
variable.
and if you want to be the two become the same memory location you need to
remove the keyword var in anonymous function.