question bank

How an answer earns “checked”.

The question bank has two kinds of answer. A dashed handbook mark means the text comes from the Front End Interview Handbook and we have not verified it. A solid checked mark means we wrote the answer ourselves and it went through the steps below. 62 answers carry it today.

  1. Written in three stages

    Each answer starts with the version you could write in an interview in a few minutes, then the one that handles the edge cases, then the one a library would ship. Each stage says what the one before it gets wrong.

  2. Every code sample is run

    Each stage has its own checks. On every build of this site they run the stage’s code in a sandbox, with a fake clock for timers, and the build fails if a single check fails. Where the browser has a native method, the answer is compared with it.

  3. The checks are checked

    Most answers also go through a second test. We change the answer on purpose, one small edit at a time (a wrong comparison, a missing line), and make sure a check fails for it. An edit that no check notices means a weak check or a line that does nothing: we tighten the one or delete the other.

  4. Claims have sources

    Statements about how the language or the browser behaves link to MDN, a specification or official documentation, listed at the foot of the answer.

  5. Opened in a real browser

    Before an answer is published, its page is opened in Chrome and each stage is looked at, to see that the code and the count of checks it passes show correctly.

Who checks

Answers are written and checked by Vikram Rana, a senior frontend engineer, working with an AI coding agent. Each answer shows the day it was last checked. If you find a mistake, tell him: the address is on the about page, and a corrected answer goes through the same steps again.

What “checked” does not mean

It does not mean an interviewer wants this exact answer, or that the code is the only right way. It means the code does what the answer says it does, and the claims around it can be traced to a source.