Factorialize a Number. Why I can't go further?

Factorialize a Number. Why I can't go further?
0

#1

var factorial = 1;
var i;

function factorialize(num) {
for(i = 1; i <= num; i++ ){
factorial *= i;
}

return factorial;
}

factorialize(10);


#3

Don’t use global variables.


#4

Thanks. Its helped me!!!