Create a gist now

Instantly share code, notes, and snippets.

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