var state=3;//context is local
function openFuture(state) {
eval(String(window.eval(new String("console.log(state)"))))
} openFuture(121)
Result:121
var state=3;//the context of state is global
function openFuture(state) {
window.eval(String(eval(new String("console.log(state)"))))
} openFuture(121)
Result: 3