codecks.

JavaScript · 18 original questions

Pick a
puzzle.

Explore references, scope, and asynchronous work. Each question has its own output choices, explanation, and execution trace.

Arrays & objects

Copying, mutation, identity

  1. Shallow copy and a shared nested array ↗
  2. Default sort after copying an array ↗
  3. Filter and a later push ↗
  4. Map when the source array grows ↗
  5. Object spread and repeated properties ↗
  6. Set and object identity ↗

Closures & scope

Bindings, loops, defaults

  1. Closures in a let loop ↗
  2. Closures in a var loop ↗
  3. Closures and a changing outer variable ↗
  4. Closures from separate factory calls ↗
  5. Default parameters at call time ↗
  6. Let shadowing and the temporal dead zone ↗

Async & promises

Jobs, chains, async functions

  1. Promises, timers, and synchronous output ↗
  2. Promise executor timing ↗
  3. Async functions before and after await ↗
  4. Promise chains and returned values ↗
  5. Catch and a recovered promise chain ↗
  6. Promise.all result order ↗

Want a short session? Start mixed practice. Your answers are saved in this browser so you can review missed concepts.