STEP 6: Let's use our new custom block to get our green 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 g.
  • Similarly, replace the variable red with green and the string red with green.
  • Finally, change the x-coordinate of the green text sprite from -1 to 1.

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)