Course · Section 3: JavaScript Fundamentals – Part 2 · Lecture 49: Looping Backwards and Loops in Loops
Implement `nestedPairs(a, b)` returning every `[i, j]` pair with `i` in `0..a-1` and `j` in `0..b-1`, using nested loops.
+ 1 hidden test run on Submit.
Nested loops enumerate every combination of outer and inner indices.
Run your code to see results.