STEP 18: We're done, right? Not exactly... There's another error the user can prompt that would break our program!

  • Click Run and enter something that's not a color for the second question.
  • Did you get an error? Our program tries to find a color with the name you entered, but can't. (Here's a valid list.)
  • Click Run again and enter a valid color. When ready, click Submit and Next to move on.

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)