Skip to content

Instantly share code, notes, and snippets.

@workmajj workmajj/fun.js
Created Jun 1, 2012

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
You can’t perform that action at this time.