Modern JavaScript · mid
ES2026 and what comes next (Temporal, using)
ES2026 adds RegExp.escape, Error.isError, Math.sumPrecise, Array.fromAsync, Uint8Array base64/hex, Iterator.concat, Map/WeakMap getOrInsert and JSON.parse source text access, while Temporal and using declarations are finished but listed for ES2027 and are not yet Baseline (as of November 2026).
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceThe notes
What you must know
- RegExp.escape(str) makes user input safe inside a RegExp (Baseline 2025).
- Error.isError(x) checks for a real error object across realms (MDN: limited availability in November 2026).
- Math.sumPrecise(iterable) adds floats without rounding drift (Baseline 2026).
- Array.fromAsync collects an async iterable (Baseline widely available).
- Uint8Array.fromBase64, toBase64, fromHex and toHex (Baseline 2025).
- Iterator.concat (Baseline 2026) and Map.prototype.getOrInsert / getOrInsertComputed (Baseline 2026).
- JSON.parse source text access: the reviver gets context.source, the raw text, so big numbers can be parsed exactly.
- Listed for ES2027 (Stage 4): Temporal (immutable dates and times with real time-zone support), Explicit Resource Management (using, await using, Symbol.dispose), iterator chunking, join and includes, joint iteration, Atomics.pause. MDN shows Temporal and using as limited availability; Node 24 already supports using.
- TypeScript 6.0 ships types for Temporal (esnext lib) and getOrInsert. Use polyfills (core-js, a Temporal polyfill) until Baseline.
The red pen
Common traps: mistake → fix
Mistake: Temporal is in ES2026
Fix: the TC39 table lists it for 2027.
Mistake: A finished feature is safe to ship
Fix: check Baseline; Safari is often last.
Easy to hard
Questions interviewers ask, easy to hard
- What is new in ES2026?
- What problem does Temporal solve that Date doesn't?
- What does a using declaration do, and when is Symbol.dispose called?
- How do you decide whether to ship a new feature with or without a polyfill?
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceYour first interview is free
Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.