Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

function

function factorial(n) {
  if (n == 0) {
    return 1;
  } else {
    return factorial(n - 1) * n;
  }
}
Source by eloquentjs.ir #
 
PREVIOUS NEXT
Tagged: #function
ADD COMMENT
Topic
Name
2+2 =