📅  最后修改于: 2022-03-11 15:02:37.461000             🧑  作者: Mango
function FirstFactorial(num) {
const data = []
for(let i = 1; i <= num; i++) {
data.push(i)
}
const newData = data.reverse().reduce((c, a) => c * a)
return newData
}