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 }