📅  最后修改于: 2022-03-11 15:02:07.510000             🧑  作者: Mango
代码示例6
function factorial(n) {
if (n == 1) {
return 1;
}
return n * factorial(n - 1);
}
console.log(factorial(6));
//Output: 720