Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Factorialize a Number

function factorialize(num) {
  for (var product = 1; num > 0; num--) {
    product *= num;
  }
  return product;
}

factorialize(5);
 
PREVIOUS NEXT
Tagged: #Factorialize #Number
ADD COMMENT
Topic
Name
1+1 =