STEP 4: We'll use a bunch of shapes to make our robot! Let's give each one its own unique variable name.

Let's change the name of the variable storing our square. Variables should not have quotes around them. Remember, giving sprites unique variable names will let us use dot notation to assign actions and commands to them later on.

  • Change the square's variable name from sprite to face.

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)