Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

coderbyte first factorial solutions

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
}
 
PREVIOUS NEXT
Tagged: #coderbyte #factorial #solutions
ADD COMMENT
Topic
Name
2+3 =