I want to load some data to the page using Javascript.
The easiest way for me is to use js Array, like below:
phones = ["14 211 122", "11 212 131", "666 132 123"];
But I feel that I shouldn't keep this kind of data in .js file. I think it should be in a separate, easier to access and edit file like .txt.
On the other hand, I'm not sure if loading data from .txt will be secure?
What should I use? Some kind of jQuery .load()? What do you suggest?
Thanks for help!