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)  
 
PREVIOUS NEXT
Tagged: #factorial #javascript
ADD COMMENT
Topic
Name
5+5 =