JavaScript DOM basics: build an interactive to-do app

10 steps · about 4 h 55 min · Beginner

  1. DOM scripting introduction - Learn web development (doc, MDN Web Docs, 30 min)

    It explains the DOM tree and how to select, create and remove nodes, which every later step relies on.

  2. JavaScript DOM Tutorials (interactive, dom-tutorials.appspot.com, 30 min)

    Short interactive exercises on accessing and changing nodes let you try the ideas before you build anything.

  3. How the JavaScript DOM Works – A Practical Tutorial (article, freeCodeCamp, 25 min)

    It splits DOM work into selecting and manipulating elements, which is the pattern a to-do app follows.

  4. Master JavaScript DOM – A Beginner-Friendly Crash Course (article, DEV Community (ebereplenty), 25 min)

    It gives a quick recap of createElement, appendChild, removeChild and querySelector, the methods you'll use for list items.

  5. Build a Web App with JavaScript In 3 Steps (tutorial, Five, 40 min)

    This is your first full build: a vanilla JS to-do list with a form, rendering and delete buttons.

  6. Build a To-Do List App with HTML, CSS & JavaScript (tutorial, DEV Community (Saim Anis), 40 min)

    A second build adds marking tasks complete and suggests extensions, so you practise the same ideas in a different way.

  7. Test your skills: Events - Learn web development (doc, MDN Web Docs, 30 min)

    These exercises check that you understand events and bubbling before you use event delegation.

  8. JS30/15-LocalStorage and Event Delegation/README.md (article, GitHub (amelieyeh), 20 min)

    It walks through a list app that uses event delegation for clicks on items and saves its state to localStorage.

  9. LocalStorage, sessionStorage (guide, javascript.info, 20 min)

    It covers the storage API in depth, so you understand why you store JSON and how saved data persists.

  10. Shopping Form with Custom Events, Delegation and Localstorage (tutorial, Wes Bos, 35 min)

    A final stretch project that restructures a list app around custom events, delegation and persistence, similar to a polished to-do app.