Mini Project: Interactive Task Tracker
Combine state arrays, form handling, event delegation, and DOM rendering to build a working Task Tracker app.
What you'll learn
- Manage application state in a JavaScript array of task objects
- Add new tasks via form submit and toggle/delete them via event delegation
- Keep a live remaining-tasks counter synchronized with state
You’ve made it to the JavaScript & DOM Essentials capstone! This Task Tracker uses the exact pattern behind modern web apps: single source of truth (tasks array) → state update → render().
Try It Yourself: Task Tracker
Add a task, click a task to toggle completion, or click × to remove it:
No console output yet. Try calling console.log(...) in JS.
JavaScript Essentials Final Check
1. Why do we call e.preventDefault() inside the form's submit event handler?
Auto-Graded Capstone Challenge
Wire up the #incBtn button so clicking it increments #counter from 0 to 1, 2, 3, and passes all 3 live behavioral tests!
JavaScript Capstone Challenge: Interactive Counter
Select #incBtn and #counter, listen for click events on #incBtn, and increment the numeric textContent of #counter by 1 on each click.
- #counter starts at "0"
- Clicking #incBtn once updates #counter to "1"
- Clicking #incBtn a second time updates #counter to "2"
Finished this lesson?
Your progress is saved locally in your browser, no account needed.