STEP 7: Let's use or new custom block to get our blue value!

  • In SUBJECT, go to and drag in Ask for Color to the bottom of your editor.
  • In these two new lines, replace all instances of r with b.
  • Similarly, replace the variable red with blue and the string red with blue.
  • Finally, replace the x-coordinate of the blue text from -1 to 3.

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)