0
How can i store data in a global varible within a local scope?
JavaScript
3 Antworten
+ 2
You drop the var inside the function to make the local scope a global variable
+ 2
....but I wouldn't do that because it'll fail in "strict mode" so you need to know what you are doing
0
why you don't declare the global variabel outside the local scope ?