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

Nesting is when we put a loop or if-statement inside another loop or if-statement.

  • 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)