Here is the code. You can test it for yourself.
Please explain :)
var factorial = 1;
function factorialize(num) {
factorial *= num;
if (num == 1) {
var result = factorial;
return result;
}
factorialize(num-1);
}
factorialize(5);
It needs no global variable and no local variable, too.