Extension: split the page into three files
Try the same app with separate files once your single-file version works.
- Download and unzip the starter. Keep all three files in the same folder. Open index.html and try a checkbox and Reset.
- Rename app.js to app-old.js. Reload the page and try the same checks. Compare the display with the behaviour.
- Restore the filename and reload. Ask a chatbot to change the accent colour without changing behaviour.
- 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.
Exercise card · prompt and fileshttps://chatbot-vibecode.industrial-linguistics.com/exercises/split-files.htmlOpens in a new tab