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