Bonus
Challenge: Todo App with All Concepts
📌 Your Challenge:
Create a complete todo app that combines all concepts:
- Add todos (DOM + Event Listeners)
- Mark todos as priority (high/medium/low) with different colors (If/Else)
- Show statistics: total todos, completed todos (Loops)
💻 Interactive Area:
Total Todos: 0 | Completed: 0
📝 What you need to code:
- Create an array to store todos
- Write addTodo() to add items to the array
- Write toggleTodo() to mark as complete/incomplete
- Write deleteTodo() to remove items
- Write renderTodos() to display all todos using forEach
- Write updateStats() to count total and completed todos