3 ms·
You can still do it, and without a Y combinator or anything like that too: var ninja = { yell: function () { var yellLocal = function(n) { retur
by gb 17y ago
You can still do it, and without a Y combinator or anything like that too:
var ninja = {
yell: function () {
var yellLocal = function(n) {
return n > 0 ? yellLocal(n-1) + "a" : "hiy";
}
return yellLocal;
}()
}