Industrial LinguisticsWorkshop home
06 / 22 · Check15 min

Break one letter, then repair it

A useful bug report describes what you did, what you expected and what happened instead.

  1. Save the working practice page and press Count once. Use the supplied broken copy for the next step, or save a copy of the working file and change updateCount() to pdateCount() on the line inside the click handler.
  2. Open the broken copy, press Count and note what happens. Open Developer Tools → Console and copy the first error with its filename and line.
  3. Paste the broken source and evidence into the prompt. Apply the smallest repair to a new file.
  4. Reload the repaired file, press Count twice and check the Console again.

Check your result

  • After the repair, Count changes from 0 to 1 and then 2.
  • The same error no longer appears after a fresh reload and two clicks.
15:00