Course · Section 2: JavaScript Fundamentals – Part 1 · Lecture 13: Basic Operators
Implement `wrapIndex(i, len)` returning `i` wrapped into the range `0..len-1`, handling negative indices.
+ 1 hidden test run on Submit.
Adding len and taking the modulus again folds negative results back into the 0..len-1 range.
Run your code to see results.