Skip to content
Guest
Learn JavaScript · Course Syllabus Show lessons
Capstone Project · 12 min read · Beginner

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:

JavaScript Capstone: Task Tracker
Live Result
Console Output

No console output yet. Try calling console.log(...) in JS.

JavaScript Essentials Final Check

Score: 0 / 1

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

0 / 3 tests passing

Select #incBtn and #counter, listen for click events on #incBtn, and increment the numeric textContent of #counter by 1 on each click.

Live Output
Automated Requirements Check
  • #counter starts at "0"
  • Clicking #incBtn once updates #counter to "1"
  • Clicking #incBtn a second time updates #counter to "2"
Study Workspace

Finished this lesson?

Your progress is saved locally in your browser, no account needed.

Search courses, lessons, and references

Type to search across all courses, lessons, and quick references.

Press Esc to close Powered by Pagefind