Month 8 Portfolio project: task tracker
Concept & theory
Build CRUD tasks with title, status and due date. Start with HTML/CSS/JS and localStorage, then optionally add an API and database. Document requirements, screenshots and testing.
Example code
const tasks = JSON.parse(localStorage.getItem('tasks') || '[]');
function addTask(title){
if(!title.trim()) return;
tasks.push({id:Date.now(),title:title.trim(),done:false});
localStorage.setItem('tasks',JSON.stringify(tasks));
}Code explained
JSON.parse restores saved tasks; trim rejects blank titles; push adds a record; JSON.stringify persists it. For production use unique IDs and error handling.
Try it yourself
Add delete/toggle features, tests, README, and screenshots.