minigames
← Games/Bug Finder
0:00
Round 1 / 3JavaScript

Click the line containing the bug:

1function sum(arr) {
2 let total = 0;
3 for (let i = 0; i <= arr.length; i++) {
4 total += arr[i];
5 }
6 return total;
7}