This page demonstrates a common live-coding interview task: "Build a Todo App". The left side is the working app, and the right side explains the modern Vanilla JS techniques used to build it.
Instead of reading from the DOM, we keep a "Source of Truth" array.
We clear the list and rebuild it whenever state changes. This mimics React's rendering cycle.
We don't attach listeners to every delete button. We attach one listener to the parent list.
Data persists on refresh.