STEP 13: Right now, we're using the wrong test value. We need to see when the pixel is equal to "white".

  • Change the test value in our if block from "yes" to "white".
  • Then, change the color inside the .set_color() command in the else block from "red" to "white".
  • Now our square will change to our color from green to white once clicked!

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)