re: Factorial Algorithm: ES5 & ES6 JavaScript Solutions VIEW POST

VIEW FULL DISCUSSION
 

const factorial = [...Array(number).keys()].map(number => number + 1).reduce(acc, n => acc * n), 0);

code of conduct - report abuse