Thank you! The way you phrased it made it make much more sense. I’ll have to save this explanation whenever I encounter recursion again.
By the way, in the real programming world, would this example be used or would something like this be used? The recursion way of solving it (in my opinion) seemed a little too over-the-top for something that’s more simple:
function factorialize(num) {
for (var product = 1; num > 0; num--) {
product *= num;
}
return product;
}
factorialize(5);