================================================================
LAB 2 — JavaScript & the DOM: Interactive Todo App
================================================================
Course: Web Technologies
Topic: Lecture 4 (JavaScript & the DOM)
Time: 2 hours lab + 2 hours self-study
Submit: Public GitHub repo URL on Moodle
----------------------------------------------------------------
LEARNING GOALS
----------------------------------------------------------------
- Use modern JavaScript: const/let, arrow functions, template literals
- Select and modify DOM elements (querySelector, classList, textContent)
- Handle events (click, submit, keydown)
- Manage state in plain JS without a framework
- Persist data with localStorage
----------------------------------------------------------------
TASKS
----------------------------------------------------------------
TASK 1 — Project setup
- Repo: todo-app, with index.html, styles.css, app.js
- Use type="module" so you can use import/export
TASK 2 — UI structure (HTML/CSS)
- for new task +