I'm trying to overwrite my variables with the ones stored on another .js file. Let's say that i have set these values:
var image1 = '1.jpg'; var image2 = '2.jpg'; var image = '3.jpg';
And that i have another file only with variables:
var image1 = 'john.jpg'; var image3 = 'mary.jpg';
So, I want these values after the file is loaded:
var image1 = 'john.jpg'; var image2 = '2.jpg'; var image3 = 'mary.jpg';
There's a way to do that?