📜  如何在javascript代码示例中找到数字的阶乘

📅  最后修改于: 2022-03-11 15:04:30.789000             🧑  作者: Mango

代码示例3
function factorialize(num) {
  if(num < 2) return 1;
  return num *= factorialize(num - 1);
}