Nested for loops in JavaScript: Why?

Nested for loops in JavaScript: Why?