STEP 6: Let's try changing the variable name of our sprite!

Every sprite and every shape has a variable name. The name of the shape is the orange word before the equals sign =. This name is a label that we use to call the shape. In this example, the circle shape is named sprite.

  • Change the name to sun.
  • The name should not have quotation marks around it and it should appear orange, like this.

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)