Programmer's Picnic LMS
Home
⭐ Milestone 10

Timer

Add countdown timer.

66% track progress

📂 Step 1 — Open the Project for This Track

Open this folder in VS Code or your editor:

tracks/react/final-project/
Open Final Project Folder

📄 Step 2 — Files to Edit

For this track, these are the important files:

Start with the yellow file, then update the others only when the task asks you to.

🎯 Step 3 — Learning Objective

Students add time pressure with interval logic.

🔨 Step 4 — Fully Defined Student Task

What to build

  • Create a timer value, for example 30 seconds.
  • Start countdown when a question appears.
  • Update timer display every second.
  • When time reaches 0, lock the question or mark it wrong.
  • Reset timer for the next question.

Acceptance Criteria

  • Timer visibly counts down.
  • Timer stops after answer is locked.
  • Timer resets on next question.
  • No multiple timers run together.

What to submit to the teacher

  • Screenshot of timer running.
  • Explain how timer is cleared/reset.

Do not move ahead until

  • The project runs without errors.
  • You can explain which files changed.
  • The acceptance criteria above are satisfied.

▶ Step 5 — Run the Project

Use this command or method:

cd tracks/react/final-project
npm install
npm run dev

✅ Step 6 — Checkpoint Output

KBC Quiz

Timer should now work.

A. Sample optionB. Sample optionC. Sample optionD. Sample option

🧠 Step 7 — Mini Quiz

  1. What exact feature did this milestone add?
  2. Which file changed the most and why?
  3. Which acceptance criterion proves the work is complete?

🆘 Full Code Fallback

👀 View / Copy Complete Help

Open this only after trying.

// Milestone 10: Timer
// Open: tracks/react/final-project/
// Complete every item under "What to build".
// Test every item under "Acceptance Criteria".

🌐 GitHub Commit

After the milestone works, commit it:

git add .
git commit -m "Complete React milestone 10: Timer"
git push

🏆 Completion Checklist