DEMO: Nesting is the process of placing an if statement or loop inside another if statement or loop.

A nested loop will run completely for every one iteration of the outside loop.

  • Click Run to see nested loops run. Follow the onstage directions to complete the demo.
  • At the end of the demo, you will be asked a question about nested loops.
  • Click Submit and Next to begin refactoring your mosaic code to use nested loops!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)