Factorialize a Number
function factorialize(num) {
let sum = 1
if(num > 0) {
for(let i=1; i<num+1; i++){
sum = sum*i
}
}
return sum;
}
factorialize(5);
function factorialize(num) {
let sum = 1
if(num > 0) {
for(let i=1; i<num+1; i++){
sum = sum*i
}
}
return sum;
}
factorialize(5);