Skip to content

Instantly share code, notes, and snippets.

View javierfurus's full-sized avatar
🎯
Focusing

Javier Furus javierfurus

🎯
Focusing
View GitHub Profile
@javierfurus
javierfurus / gist:f07cf588ae1a271a5581
Created November 21, 2015 14:01
My solution for "Bonfire: Factorialize a number"
// Bonfire: Factorialize a Number
// Author: @javierfurus
// Challenge: http://www.freecodecamp.com/challenges/bonfire-factorialize-a-number
// Learn to Code at Free Code Camp (www.freecodecamp.com)
function factorialize(num) {
var factorArray = [];
for (var i=1; i <=num; i++ ) {
factorArray.push(i);
}