frontend / README.md

JavaScript Core — Senior Interview Prep

1 min read index source

JavaScript Core — Senior Interview Prep

Language fundamentals through the lens of “explain what your code actually does.” The numbered senior top-ups (event loop, this, prototypes, generators, modules, memory, errors) cover what post-2022 interviews probe beyond closures and array methods.

Files

Fundamentals

Topic
Data types — primitives, coercion, equality
Data structures — Map/Set/objects/arrays
Array methods
Closures and lexical scope

Functions, objects, this

Topic
this and binding — call/apply/bind, arrows, method extraction
Prototypes and the prototype chain
Classes

Async

Topic
The event loop — macrotasks, microtasks, rendering
Callbacks · Promises · async/await
Promises — advanced (combinators, withResolvers, cancellation)
Generators and iterators
ES modules — static/dynamic import, live bindings, tree shaking

Memory & errors

Topic
Memory and garbage collection — leaks, WeakMap/WeakRef
Errors and error handling — custom errors, cause, stacks

How an interviewer probes JS core depth

  • “What’s the output?” — event-loop ordering of sync / microtask / macrotask. See event-loop.md.
  • “Why is this undefined here?” — method extraction / arrow vs function. See this-and-binding.md.
  • “Make this lazy / stream it” — generators and for await...of. See generators-and-iterators.md.
  • “This app leaks memory — find it” — listeners/timers/detached DOM, heap snapshots. See memory-and-gc.md.
  • “Why didn’t your try/catch catch that?” — async error propagation. See errors.md.

Cross-references

External resources

Saved question banks (general-purpose; the notes above go deeper):