Learn Javascript, Loops, for loops inside of for loops, Codecademy

Lesson Summary

In this javascript tutorial, we learn about how a for loop inside of a for loop works. For loops inside of for loops can be used to go through 2 lists and compare items in them together. This can be done by nesting one loop inside of another one. In the second loop we use an if statement to compare the first count (i) with the second count(j)