If I wanted to extract a variable from an external js file to another external js file.. How would I do that?
For example, if I had a file call example1.js that contained the following code
var test = 1;
How would I obtain the value of variable test and put it into my example2.js?
Thanks for the help!