Skip to content

Why does it help that Temporal uses different types for different time concepts?

Show answer & explanation

Answer: Because clearer types reduce accidental misuse

Because clearer types reduce accidental misuse ✓ — Correct! Temporal asks developers to be explicit about whether they mean an instant, a calendar date, a duration, or a timezone-aware local time.

Because JavaScript wanted more class names — Wrong. The goal is not to add names for fun, but to separate different meanings of time.

Because timezones no longer exist — Wrong. Temporal helps model timezones correctly; it does not erase them.

Play today's quiz — new questions daily

More Technology questions