(a)
| 11 | } |
| 12 | |
| 13 | function factorial(a) { |
| 14 | // Factorial de 5: 5 * 4 * 3 * 2 * 1 |
| 15 | let factorial = 1; |
| 16 | for (let i = 2; i <= a; i++) { |
| 17 | factorial *= i; |
| 18 | } |
| 19 | return factorial; |
| 20 | } |
| 21 | |
| 22 | module.exports = { |
| 23 | suma, |
nothing calls this directly
no outgoing calls
no test coverage detected