All Challenges/

Array Boundary Traversal

Beginner

A function intended to sum all elements in an array returns NaN for non-empty arrays due to accessing an out-of-bounds index.

Topics:Array BoundsLoops
solution.js
JavaScript (Isolated Web Worker)
1
2
3
4
5
6
7
8
Click "Run Tests" to execute your code against 3 deterministic test cases.

Execution runs safely in an isolated client-side Web Worker sandbox.