Github — Mathsframe


  "topic": "fractions",
  "question": "What is 3/4 of 20?",
  "options": [12, 15, 10, 18],
  "correct": 15,
  "hint": "Divide 20 by 4, then multiply by 3"

You don't need to start from scratch. Use HTML/CSS/JS templates from GitHub:

function randomQuestion() 
  let a = Math.floor(Math.random() * 10) + 1;
  let b = Math.floor(Math.random() * 10) + 1;
  return  text: `$a x $b`, answer: a * b ;
maths-game/
├── index.html
├── css/
│   └── style.css
├── js/
│   ├── game.js
│   ├── questions.js
│   └── score.js
├── assets/
│   ├── sounds/
│   └── images/
├── README.md
├── LICENSE
└── demo-link.txt

Key files explained: