JavaScript Interview Questions
Closures
Lexical scope, closure use cases, and common pitfalls.
View sample →Promises & async/await
Promise chains, error handling, parallel vs sequential.
View sample →ES6+ Features
Arrow functions, destructuring, spread, modules.
View sample →DOM & Events
Event bubbling, delegation, and the DOM API.
View sample →Prototypes
Prototype chain, __proto__, Object.create, classes.
View sample →Hoisting & TDZ
var vs let/const, temporal dead zone, function hoisting.
View sample →Equality
== vs ===, type coercion, and Object.is — with a spoken sample answer.
View sample →this, call, apply, bind
How this is decided, and when to use call, apply, and bind.
View sample →Event Loop
Call stack, task queue, microtasks, and browser vs Node.
View sample →Fetch & HTTP
fetch, CORS basics, JSON handling, error patterns.
View sample →Error Handling
try/catch, custom errors, unhandled rejections.
View sample →Modules & Bundling
ES modules, CommonJS, tree shaking concepts.
View sample →map, filter, reduce
map vs filter vs reduce, immutability, and when forEach is the wrong choice.
View sample →Practice with AI mock interviews
Run JavaScript mock interviews with instant feedback on AiLx.
Free to start · No credit card required