Skip to content

What is one big reason `Date` confuses developers?

Show answer & explanation

Answer: Because it mixes different ideas of time into one type

Because it mixes different ideas of time into one type ✓ — `Date` bundles several distinct notions—an exact instant, calendar components, and timezone-dependent formatting—into one type, which makes it easy to mix them up.

Because it can only be used in Node.js — `Date` is available in browsers and other JavaScript environments, not just Node.js.

Because it only stores years, not days — `Date` actually stores both the date and the time, down to milliseconds.

Play today's quiz — new questions daily

More Technology questions