(array)
| 10 | } |
| 11 | |
| 12 | function sum(array) { |
| 13 | let total = 0; |
| 14 | for (let value of array) { |
| 15 | total += value; |
| 16 | } |
| 17 | return total; |
| 18 | } |
| 19 | |
| 20 | console.log(range(1, 10)) |
| 21 | // → [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] |
no outgoing calls
no test coverage detected