Skip to content

Instantly share code, notes, and snippets.

@ErinCall
Created December 7, 2011 18:59
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 ErinCall/1444115 to your computer and use it in GitHub Desktop.
Save ErinCall/1444115 to your computer and use it in GitHub Desktop.
JS behaving the same way as Python did
>>> var doathing = function() { var printathing = function() { console.log(wootabaga) }; for (var wootabaga = 0; wootabaga <= 1; wootabaga++) { printathing() }}
undefined
>>> doathing();
0
1
undefined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment