Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

factorial javascript function

function factorialize(num) {
  if(num < 2) return 1;
  return num *= factorialize(num - 1);
}
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #factorial #javascript #function
ADD COMMENT
Topic
Name
2+1 =