Click here to navigate the course.

Drag the edges to resize the window.

In Projects, you can keep track of your progress as you go throught the tasks. Check each item as you complete it!

Code Editor

for loops inside of for loops

Let's say that you and a friend would like to go on vacation together. You've both made arrays of your favorite places and you want to compare to see if any places match. This is a job for loops!

The big idea is that we can run a for loop inside another for loop to compare the items in two arrays.

Every time the outter for loop runs once, the inner for loop will run completely.

With two for loops, we can check to see if any of the your vacation spots match your friend's spots.

Report a Bug
If you see a bug or any other issue with this page, please report it here.