[ prog / sol / mona ]

prog


Marvin Minsky - The Beauty of the Lisp Language

141 2020-10-10 23:20

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

301


VIP:

do not edit these