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