I think I know the answer but... is there any way to prevent a global variable from being modified by later-executing ? I know global variables ar
I know this question is old, but you could use Object.freeze(yourGlobalObjectHere); I just wrote a blog post about it here.