Industrial LinguisticsWorkshop home
20 / 22 · ExtensionOptional

Extension: split the page into three files

Try the same app with separate files once your single-file version works.

  1. Download and unzip the starter. Keep all three files in the same folder. Open index.html and try a checkbox and Reset.
  2. Rename app.js to app-old.js. Reload the page and try the same checks. Compare the display with the behaviour.
  3. Restore the filename and reload. Ask a chatbot to change the accent colour without changing behaviour.
  4. Ask which file to change. Apply the change to a copy, then repeat the checks.

Check your result

  • The page still displays when its script is missing, but the count and Reset fail.
  • Restoring the script restores both behaviours.
  • Changing just the stylesheet changes the accent colour and preserves interaction.