DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
factorial program in javascript
function fact(N){ if(N <= 1){ return "1"; } else { return N * fact(N-1); } } fact(5);
Source by 1loc.dev #
PREVIOUS
NEXT
Tagged:
#factorial
#program
#javascript
ADD COMMENT
Topic
COMMENT
Name
7+4 =
Submit