var x = 'outer'; (function() { var x = 'inner'; eval('x'); // "inner" })();
var num=9;var retNum = new Function("$", "$=5+$;return $")(num);console.log(num);//14console.log(retNum);//9