Project pool

BeginnerJavaScript

Quiz game

Ten questions, a timer and a score at the end.

Time
~6h
When approved
+100 XP

The brief

Build a quiz on any topic you like. Questions live in a JavaScript array; the page shows one at a time, marks the answer, and keeps score.

What must work

  • 01At least 10 questions stored as an array of objects
  • 02One question at a time with four options; shows right or wrong after each
  • 03A 15-second timer per question
  • 04A final screen with the score and a play-again button

If you want to go further

  • Load questions from an open trivia API
  • A high-score table in localStorage