Skip to content

Instantly share code, notes, and snippets.

@pragmaticobjects
Created September 9, 2011 06:44
Show Gist options
  • Select an option

  • Save pragmaticobjects/1205632 to your computer and use it in GitHub Desktop.

Select an option

Save pragmaticobjects/1205632 to your computer and use it in GitHub Desktop.
Example 4
a = {};
function outer() {
var b = 0;
var c = function inner() {
var d = 10;
b = d + b + 1;
console.log(b);
}
a = c;
}
outer();
a();
a();
a();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment