Next Question
Move to the next question.
53% 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 use indexes and arrays.
🔨 Step 4 — Fully Defined Student Task
What to build
- Add a Next Question button.
- When clicked, increase current question index by 1.
- Reset selected answer and feedback message.
- Load the next question from JSON.
- Stop moving forward after the final question.
Acceptance Criteria
- Next button moves forward one question.
- Selection and message reset.
- Question number changes correctly.
- No undefined question error occurs.
What to submit to the teacher
- Screenshot of question 1 and question 2.
- Explain why index bounds are important.
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
Next Question should now work.
A. Sample optionB. Sample optionC. Sample optionD. Sample option🧠 Step 7 — Mini Quiz
- What exact feature did this milestone add?
- Which file changed the most and why?
- Which acceptance criterion proves the work is complete?
🆘 Full Code Fallback
👀 View / Copy Complete Help
Open this only after trying.
// Milestone 08: Next Question
// Open: tracks/react/final-project/
// Complete every item under "What to build".
// Test every item under "Acceptance Criteria".Add a Next Question button.
When clicked, increase current question index by 1.
Reset selected answer and feedback message.
Load the next question from JSON.
Stop moving forward after the final question.Ask the student to demonstrate the running output, then ask which file changed and why.🌐 GitHub Commit
After the milestone works, commit it:
git add . git commit -m "Complete React milestone 08: Next Question" git push