Or just use the arguments.callee property which allows you to call the function from itself without worrying about names.
edit: oops, just seen that's on a later slide.
var ninja = { yell: function () { var yellLocal = function(n) { return n > 0 ? yellLocal(n-1) + "a" : "hiy"; } return yellLocal; }() }
Or just use the arguments.callee property which allows you to call the function from itself without worrying about names.
edit: oops, just seen that's on a later slide.