SYNTAX ERROR: This program has lots of syntax errors, but we can use the error messages to debug!

  • Click Run to see what happens. Read the error messages and make note of the line numbers!
  • Use the Run button after making changes to see if there are any more errors.
  • Fix the bugs by editing the code so that the program finishes. There are a total of 7 syntax errors.
  • Don't rewrite the code! Try to make as few changes as possible.

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)