Skip to content

Instantly share code, notes, and snippets.

@ELLIOTTCABLE
Created June 7, 2014 11:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ELLIOTTCABLE/211b6b3ba3034861cdbe to your computer and use it in GitHub Desktop.
Save ELLIOTTCABLE/211b6b3ba3034861cdbe to your computer and use it in GitHub Desktop.
Not all scopes ...
function set(x){return "(function(y){"+x+"=y})"}
var a = 123
eval(set("a"))(456)
console.log(a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment