javascript factorial with closure code example
Example: javascript factorial with closure
function calcularFatorial(num) {
return num > 1 ? num * calcularFatorial(num - 1) : 1;
}
function calcularFatorial(num) {
return num > 1 ? num * calcularFatorial(num - 1) : 1;
}