Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

factorial js

function factorial(n) {
  return (n + 1) * (n / 2);
}
Source by 1loc.dev #
 
PREVIOUS NEXT
Tagged: #factorial #js
ADD COMMENT
Topic
Name
2+8 =