Can someone tell me that if I minify all my JS files, will global variables still function properly?
For example, given the below:
Would this still work? This is a very basic example, most of my JS is contained within objects, but I do have numerous references to global variables.
Thx.
For example, given the below:
Code:
file1.js
var total = 50;
Code:
file2.js
var newTotal = total + 50;
Would this still work? This is a very basic example, most of my JS is contained within objects, but I do have numerous references to global variables.
Thx.