Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Except in ES5 strict mode :-/


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;
  	}()
  }




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: