function factorialize(num) { let product = 1; for (let i = 2; i <= num; i++) { product *= i; } return product; } factorialize(5);