Programmer's Picnic LMS
Home
⭐ Milestone 04

Load JSON

Load questions using code.

26% track progress

📂 Step 1 — Open the Project for This Track

Open this folder in VS Code or your editor:

tracks/html-js/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 connect the app to external question data.

🔨 Step 4 — Fully Defined Student Task

What to build

  • Write code to load the JSON question file.
  • Store the loaded data in a variable/state/service/list.
  • Print or display the total number of questions.
  • Add an error message if loading fails.
  • Run the project and confirm data is loaded.

Acceptance Criteria

  • No file path error appears.
  • The app knows the number of questions.
  • Loading failure is handled or visible.
  • JSON is not manually copied into the UI code.

What to submit to the teacher

  • Screenshot or console output showing loaded questions.
  • Explain the data loading method used.

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:

Open tracks/html-js/final-project/index.html in your browser.

✅ Step 6 — Checkpoint Output

KBC Quiz

Load JSON 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 04: Load JSON
// Open: tracks/html-js/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 HTML / JavaScript milestone 04: Load JSON"
git push

🏆 Completion Checklist