function factorialize(num) {
if (num < 0) {
return -1;
}
else if (num === 0) { // returns true when "num" hits 0 and breaks? does this hold true to all methods?
return 1;
}
else
return (num * factorialize(num - 1)); //in this case the end equation will be 5*4*3*2*1=120
}
factorialize(5);