A multiple-choice quiz with score tracking and result summary.
Difficulty: Beginner · Technology: JavaScript
Features to build
- Question bank in JSON
- Timer
- Score summary
- Restart option
Step-by-step build plan
- Store questions in a JSON file
- Show one question at a time
- Track the score
- Add a timer and a result screen
- Shuffle questions on restart
The part most people find hard
Preventing double clicks from scoring twice.
How to test it
Play through with all right, all wrong and mixed answers.
What to decide before you start
Write the questions as data so the quiz logic does not depend on a particular question.
Questions an interviewer may ask about this project
- How do you shuffle without repeating questions?
- How do you keep the score correct?
- How would you load questions from a server?
Mistakes to watch for
Allowing multiple clicks on the same answer.
Suggested extensions
Add user accounts, better error handling, automated tests and a README with screenshots. Each extension is a new talking point in interviews.
How to describe it on your resume
Built an interactive quiz app with timer and score tracking.
Portfolio tip
Deploy it, link both the live version and the code, and write two paragraphs about what you learned and what you would improve.