DEMO: Before our next step, let's talk about nesting.

Nesting is when we put a loop or if-statement INSIDE of another loop or if-statement. Any code in the inner statements will need to be indented twice!

  • There's an example in the code editor. Click Run to see what will happen!
  • Click Submit and Next once you've finished the demonstration.

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)