Loading…
Loading…
Thirty classic JavaScript interview questions: closures in loops, hoisting and the TDZ, this, the event loop and microtasks, async/await, coercion, sorting and parseInt traps, prototypes, copying, finally, generators and bind. Every answer was verified by running it.
The questions interviewers ask most often, in the form they usually take: what does this code print, and why? Each one targets a concept covered in the JavaScript course, and each explanation names the rule behind the answer.
Every answer was confirmed by running the code on Node.js. Read the code carefully before answering: most of these questions are designed to catch a quick guess. Aim for at least 24 out of 30, and reread the relevant article for any you miss.
Quiz path: step 18 of 20. Take the quizzes in this order, after reading the articles they cover.
Previous quiz: JavaScript Course Final Exam (All 17 Parts)
Next quiz: JavaScript's Delicate Details (Spec-Level Edge Cases)
30 questions · pass at 68%
Check your understanding; you see the answers and explanations after submitting.
Discussion
Sign in to ask a question or share what you learned.