📅  最后修改于: 2022-03-11 15:03:21.178000             🧑  作者: Mango
function factorialRecursion(n) {
if (n == 1) {
return 1;
}
return n * factorialRecursion(n - 1);
}
console.log(factorialRecursion(5))
//Output: 120