SyntaxFix
Write A Post
Hire A Developer
Questions
You can access the function itself using arguments.callee [MDN]:
arguments.callee
if (counter>0) { arguments.callee(counter-1); }
This will break in strict mode, however.