var x = "AAAAAAA333AA"; (function (a) { console.log(a); }(x)); /*x must be already defined at the time*/