minigames
Leaderboard
Settings
← Games
/
Bug Finder
0:00
Restart
Round 1 / 3
JavaScript
Click the line containing the bug:
1
function sum(arr) {
2
let total = 0;
3
for (let i = 0; i <= arr.length; i++) {
4
total += arr[i];
5
}
6
return total;
7
}