Skip to content

Instantly share code, notes, and snippets.

@jbrantly
Created May 10, 2010 20:02
Show Gist options
  • Save jbrantly/396468 to your computer and use it in GitHub Desktop.
Save jbrantly/396468 to your computer and use it in GitHub Desktop.
var i = 0;
var func = function() { i++; };
func();
print(i); // 0 or 1? (answer: 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment