Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

factorialization in javascript

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

factorialize(5);
Source by forum.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #factorialization #javascript
ADD COMMENT
Topic
Name
6+9 =