Hacker News new | past | comments | ask | show | jobs | submit login

Seems like a somewhat convoluted way of doing this:

  alert(function rec(i) {
    return i === 0 ? 1 : i * rec(i - 1);
  }(4));//24
  alert(typeof rec);//undefined



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

Search: