For example , in JavaScript , the factor function can be defined as anonymous via such a recursion :
In JavaScript , for example , the factorial function can be defined through anonymous recursion as such :