Create a gist now

Instantly share code, notes, and snippets.

Fun with JS scope and first-class functions.
> var foo = function() { return foo; }
undefined
> foo
function () { return foo; }
> foo()
function () { return foo; }
> foo()() === foo()()()()()()()()
true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment