STEP 8: What is the value of roll2? Let's say it!

  • We have added a new person sprite to the bottom of your code.
  • Click the GRAPHICS tab, then go to and drag out Say.
  • Change the string in .say() to the variable roll2.

Run the code more than once! Notice that the new sprite says a random number from 1 to 10 each time.

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)