TE
TechEcho
Home
24h Top
Newest
Best
Ask
Show
Jobs
English
GitHub
Twitter
Home
Anonymous recursion in 6 lines of Javascript
1 points
by
arnemart
over 14 years ago
1 comment
lhorie
over 14 years ago
Seems like a somewhat convoluted way of doing this:<p><pre><code> alert(function rec(i) { return i === 0 ? 1 : i * rec(i - 1); }(4));//24 alert(typeof rec);//undefined</code></pre>