Skip to content
fa
Search Frontend Atlas
Search questions and concepts across the handbook.

5 curated questions

JavaScript & TypeScript

Language semantics, execution, types, and the runtime model.

  1. 01

    How do closures retain access to variables after a function returns?

    Explain closure capture through lexical environments, reachability, and mutation—not a vague “function remembers variables” rule.

    foundation · 10 min
  2. 02

    What actually happens when JavaScript executes a function?

    Trace execution from the call site through execution contexts, lexical environments, and the call stack.

    foundation · 9 min
  3. 03

    How does the event loop order tasks, microtasks, and rendering?

    Reason about observable ordering without relying on slogans such as “promises always run first.”

    intermediate · 14 min
  4. 04

    How should asynchronous operations be composed with Promises?

    Choose between sequential work, fail-fast aggregation, settled aggregation, and bounded concurrency.

    intermediate · 12 min
  5. 05

    What does TypeScript mean by structural typing?

    Explain compatibility through member shape, excess-property checks, and the limits of compile-time guarantees.

    intermediate · 11 min