Resource · Guide or article
Coding Questions
A dozen short JavaScript snippets that ask what a piece of code outputs or returns. Useful as a self-test for front end candidates on language quirks.
Reviewed
Open the original: Coding Questions (opens the original site in a new tab)Add to a roadmap
Keep this resource with a roadmap you follow. It appears as your own extra resource; the roadmap's steps don't change and it doesn't count toward your tracked steps.
Source content: English
Coding Questions in Front-end Developer Interview Questions.
PrepKit overview
PrepKit editors wrote and reviewed this overview from the source repository. It is not text from the resource itself.
- Suited to
- The source does not state a level
- Format
- Question list
What it covers
- Type coercion and floating-point comparison
- Scope and closures inside immediately invoked functions
- Object references and chained assignment
- Ordering of synchronous code, timers and promise callbacks
- Promise chaining differences and automatic semicolon insertion
How to use it
PrepKit study advice, not a claim made by the source.
Write your predicted output for each snippet, then run it in a browser console. For every miss, write one sentence on the rule you got wrong.
Scope and limitations
Questions only, no answers or explanations. A few snippets use older patterns such as alert and var.
Access and format
Web page on h5bp.org from the h5bp Front-end Developer Interview Questions project, free to read, in English. Questions only, no answers.
Reviewed by PrepKit on Oct 2, 2026. Listing source commit: 33f5498b653e
Evidence behind this overview
- src/questions/coding-questions.md
Pages that include this
Get the PrepKit newsletter
Optional. You don't need it to use PrepKit.