Task: Translation
Input (English): For example , in JavaScript , the factor function can be defined as anonymous via such a recursion :
Output (Chinese): 例如，在JavaScript中，可以通过匿名递归来定义阶乘函数：