Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

factorize a number

function factorialize(num) {
  let product = 1;
  for (let i = 2; i <= num; i++) {
    product *= i;
  }
  return product;
}

factorialize(5);
Source by forum.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #factorize #number
ADD COMMENT
Topic
Name
2+5 =