Skip to content

Instantly share code, notes, and snippets.

@Maciek416
Created October 27, 2009 00:46
Show Gist options
  • Select an option

  • Save Maciek416/219189 to your computer and use it in GitHub Desktop.

Select an option

Save Maciek416/219189 to your computer and use it in GitHub Desktop.
(
//
// 1 + 1 = 2
//
(function(x){return this+x}).apply(1,[1])==2
&&
//
// 2 ^ 3 = 8
//
(function(x){return Math.pow(this,x)}).apply(2,[3])==8
&&
//
// 2 * 50 == 100
//
(function(x){return x==0?x:(this+arguments.callee.apply(this,[x-1]))}).apply(2,[50])==100
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment