Skip to content

Instantly share code, notes, and snippets. 's solution for Bonfire: Factorialize a Number
// Bonfire: Factorialize a Number
// Author: @twhite96
// Challenge:*%20factorialize(num%20-%201)%3B%0A%7D%0A%0Afactorialize(5)%3B%0A
// Learn to Code at Free Code Camp (
function factorialize(num) {
if (num === 0) {
return 1;
return num * factorialize(num - 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.