How would I get access to the a_var
that is in setTimeout
, from the outter someFunction
?
Thanks.
function someFunction(){
(function why(){
setTimeout(function(){
var a_var='help I wanna get out!';
return a_var;//<-useless?
}, 25);
})();
};