function a(){ var b="local"; window.setTimeout(function(){ // need local variable "b" at this point // ..without globalization }, 1000)); }