JavaScript

What is the Temporal API and why is it needed?

Hard
2
Added
Modern date/time API proposal addressing Date object shortcomings. Provides immutable objects and better timezone handling.

Solution Code

JavaScript
const date = Temporal.Now.plainDateISO();
console.log(date.toString());
Explanation
Supports calendar systems beyond Gregorian and precise time calculations.

Guided Hints

Compare with Luxon/date-fns
Migration from legacy Date