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