Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

factorial javascript

num = 5
factorialn = 1
function factorial() {
    for (i = 1; i <= num; i++) {
        factorialn *= i
    }
}
factorial()
console.log(factorialn)  
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #factorial #javascript
ADD COMMENT
Topic
Name
9+9 =