otherfile.js (function(){ Time = {a:"AAAAAAA", b:function(){alert("BBBBBBB")} } })() thisfile.js console.log(Time.a)