DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
factorial function javascript
function factorial(n) { if (n > 1) { return n * factorial(n - 1); } return 1; }
PREVIOUS
NEXT
Tagged:
#factorial
#function
#javascript
ADD COMMENT
Topic
COMMENT
Name
1+8 =
Submit