B
Bill
If I declared an array or object in a .JS file, should it not be global
throughout all the files which reference it?
throughout all the files which reference it?
If I declared an array or object in a .JS file, should it not be global
throughout all the files which reference it?
Bill said:If I declared an array or object in a .JS file, should it not be global
throughout all the files which reference it?
Lee said:Bill said:
No.
The .js file is just a text file. It doesn't provide any place to
store the data.
As each file loads and interprets the file, each one creates its
own storage space.
I think it's better to think in terms of windows, not files.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.