Home › Function Forge › 5 / 7
🐞 Debug
An average that stops early
average(numbers) should add every number and divide by how many there are. average([2, 4]) should be 3.0, but it is not. Trace it in your head or run it, then fix it.
Loading…
Home › Function Forge › 5 / 7
🐞 Debug
average(numbers) should add every number and divide by how many there are. average([2, 4]) should be 3.0, but it is not. Trace it in your head or run it, then fix it.
Loading…