STEP 9: Two skyscrapers doesn't make a city. We need to add more, but is there a way to speed things up?

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

  • Highlight the four lines of code you wrote to make your second skyscraper. Copy the code.
  • Follow these directions to create a new custom block.
  • In the title space, type Random Skyscraper. Paste your code inside your new block. 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)