r/learnjavascript • u/Glad_Ground5391 • Oct 22 '26
Any free resources to practice JavaScript output-based interview questions?
Hey everyone! Iβm currently interviewing for Full Stack Developer roles, but I struggle with JavaScript input/output questions. Just reading concepts isnβt helping much.
Does anyone know of any free websites or quizzes where I can practice these questions with explanations?
Thanks! π
5
Upvotes
1
u/ishanism123 Oct 22 '26
Im not sure about the website, but you can search for JS quirks. Those will clear the often confusing outputs in JS
1
u/Mbwiria_Godlee Oct 22 '26
the trick with those questions is they almost always test the same handful of things: hoisting, closures, event loop, and coercion. if you focus on understanding those four deeply youll cover like 80% of what interviewers ask
2
u/lukehaas Oct 22 '26
RunJS gives you side by side input/output and an AI chat bar that sees both and can give you explanations.
1
u/akornato Oct 23 '26
Two of the best free places to practice output questions are the Lydia Hallie javascript-questions repository on GitHub and the quiz section on BFE.dev. Lydia Hallie's collection features over a hundred tricky multiple-choice problems covering event loop timing, variable hoisting, closures, and type coercion, complete with clear explanations for every single snippet. BFE.dev is another excellent platform where you can test your ability to predict console logs across microtasks, prototypes, and scope traps, with community discussions underneath each problem to break down edge cases.
When you work through these questions, try writing down your predicted output line by line on paper before testing the code in your browser console, because active recall makes it much easier to internalize how the call stack and event loop interact. Beyond static quizzes, my team designed interviews.chat to help candidates perform at their peak and secure strong offers, yet developing a reliable mental model for code execution beforehand gives you the clarity you need to talk through tricky snippets under pressure.
1
u/Frontend_Lead 1d ago
Output questions are mostly the same 6-7 concepts in different costumes, so practice by concept:
- type coercion: + with strings, == vs ===, [] + {}, truthy / falsy
- hoisting: var vs let/const (TDZ), function declarations vs expressions
- this: regular vs arrow functions, method extracted from an object, call/apply/bind
- closures in loops: var vs let with setTimeout
- event loop order: sync, then microtasks (promises), then macrotasks (setTimeout)
- object references and mutation, shallow copy vs deep copy
Free stuff that works:
- javascript.info chapters on each of the above, then do the tasks at the end
- the "You Don't Know JS" books (free on GitHub)
- write your own snippets, predict, then run them in the console, that loop is what actually builds the skill
Do 10 a day for two weeks and you'll start spotting the trick in seconds.
frontendlead(com)/trivia-questions/mastering-event-loop-micro-macro-tasks-javascript explains the event loop order questions step by step (full disclosure, I built it)