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:
  1. Create an array to store todos
  2. Write addTodo() to add items to the array
  3. Write toggleTodo() to mark as complete/incomplete
  4. Write deleteTodo() to remove items
  5. Write renderTodos() to display all todos using forEach
  6. Write updateStats() to count total and completed todos