Resource · Guide or article
JavaScript Interview Questions (Quiz) for Front End Interviews
Written answers, with code samples, to the h5bp JavaScript interview questions. Suits front end candidates preparing for quiz rounds on language behavior and browser events.
Reviewed
Open the original: JavaScript Interview Questions (Quiz) for Front End Interviews (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
Answers to Front-end Job Interview Questions - JS Questions. Pull requests for suggestions and corrections are welcome!
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
- The rules for this, closures, prototypal inheritance and ES6 class versus constructor functions
- Hoisting, var, let and const, the temporal dead zone, and function declarations versus expressions
- Event delegation, bubbling, the event loop with call stack and task queue, and load versus DOMContentLoaded
- Promises versus callbacks, same-origin policy with CORS and CSRF notes, and why JSONP is a hack
- Immutability with Object.freeze and seal, spread versus rest, currying and higher-order functions
How to use it
PrepKit study advice, not a claim made by the source.
Pick five headings a day, predict each code sample's output before reading, and run the samples in a browser console. Then explain the topic aloud in two minutes. Done when your predictions match for hoisting, this and the event loop.
Scope and limitations
Several answers reflect older practice, such as AMD versus CommonJS, jQuery, Backbone and polyfill concerns. Many answers are first-person opinions. The page points to a newer GreatFrontEnd version with referral tracking.
Access and format
Web page on frontendinterviewhandbook.com, free to read, in English. The text comes from the MIT-licensed front-end-interview-handbook repository.
Reviewed by PrepKit on Oct 2, 2026. Listing source commit: 8e867581255f
Evidence behind this overview
- website/contents/javascript-questions.md
Pages that include this
Get the PrepKit newsletter
Optional. You don't need it to use PrepKit.