Designing a 'How Well Do You Know Me' Quiz: Question Rules and Fair Scoring in JavaScript
A developer tutorial on DEV Community explains how to build a 'how well do you know me' quiz that is both fun and fair. It recommends asking about everyday habits rather than trivia, writing believable wrong answers, keeping options uniform in length and style, and mixing easy and hard questions. The article presents a dependency-free Node.js module that lints questions for common mistakes such as duplicate or empty options, bad answer indexes, and a correct answer that stands out by length. The code is framed as a teaching example and omits storage, accounts, and web-server concerns. The lint checks are heuristics that flag issues for human review rather than rejecting questions outright.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in