NjadaScript
Hopp til navigering
Hopp til søk
A simple recursive function: <source lang="JavaScript"> function factorial (n) {
if (n == 0) { return 1; } return n * factorial(n - 1);
} </source>
A simple recursive function: <source lang="JavaScript"> function factorial (n) {
if (n == 0) { return 1; } return n * factorial(n - 1);
} </source>