WARNING: This program has a bug. This bug is a logic error. The sprite's first class of the day is coding!

RULE: The first item on a list is at index 0.

  • Click Run and watch the stage to see what's wrong.
  • The sprite says the second class in the list, but it should say the first.
  • Debug the program so that the sprite says the first class of the day using the correct index.

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)