STEP 7: Now let's turn the code we added for one stripe into a custom block that we can use again!

A custom block lets you reuse code you've previously written.

  • Highlight the LAST THREE lines of code in your editor. Copy the code.
  • Then, follow these directions to create your own custom block.
  • In the title space, type Flag Stripe. Click Save.

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)