Mohammed_Oda Mohammed_Oda

Niner since 2011


  • Understandi​ng Function versus Global Scope - 10

    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
    and if you want to be the two become the same memory location you need to
    remove the keyword var in anonymous function.