Add task tracker project

pull/6983/head
Kamran Ahmed 3 months ago
parent 6da9dfc771
commit d202e0a75d
  1. 4
      src/data/projects/accordion.md
  2. 34
      src/data/projects/task-tracker-js.md

@ -27,6 +27,4 @@ Given below is the mockup showing the accordion in its default and expanded stat
[![Accordion](https://assets.roadmap.sh/guest/accordion-rbvpo.png)](https://assets.roadmap.sh/guest/accordion-rbvpo.png)
This project will help you practice DOM manipulation, event handling, and implementing responsive design patterns using JavaScript.
---
This project will help you practice DOM manipulation, event handling, and implementing responsive design patterns using JavaScript.

@ -0,0 +1,34 @@
---
title: 'Task Tracker'
description: 'Create a task tracker with a to-do list using HTML, CSS, and JavaScript.'
isNew: false
sort: 22
difficulty: 'intermediate'
nature: 'JavaScript'
skills:
- 'HTML'
- 'CSS'
- 'JavaScript'
- 'DOM Manipulation'
seo:
title: 'Build a Task Tracker with JavaScript'
description: 'Learn how to create a dynamic task tracker that allows users to add, complete, and delete tasks with real-time updates.'
keywords:
- 'task tracker'
- 'to-do list'
- 'javascript project'
roadmapIds:
- 'frontend'
---
You are required to create a task tracker that lets users add new tasks, mark them as complete, or delete them. Completed tasks will be moved to the end of the list and will have strikethrough, and users can unmark tasks to return them to the pending list.
Here is the mockup of the task tracker:
[![Task Tracker](https://assets.roadmap.sh/guest/task-tracker-2diba.png)](https://assets.roadmap.sh/guest/task-tracker-2diba.png)
## Hint
Store your tasks in an array of objects, where each object represents a task with properties like description and status (completed or not). Whenever a new task is added, updated, deleted, or marked as complete/uncomplete, update the tasks array. Write a function `renderTasks` which will remove all tasks from the DOM and re-render them based on the updated tasks array.
This project will help you practice array manipulation, event handling, and dynamic DOM updates using JavaScript.
Loading…
Cancel
Save