Question 1 of 16
Quiz
JavaScript Dates and Modern Time with Temporal — Quiz
Check your understanding of Date time values, UTC/local interpretation, parsing, mutation, and Temporal types.
16 questions
Knowledge check
JavaScript Dates and Modern Time with Temporal — Quiz
Check your understanding of Date time values, UTC/local interpretation, parsing, mutation, and Temporal types.
- Skip a hard question and review it before your results.
- Questions and answer options can shuffle between attempts.
You can retake this quiz whenever you like.
0:00
Date stores an ECMAScript time value, represented as a Number, or NaN for an invalid date.
Question 2 of 16
What instant is time value 0?
Zero is the ECMAScript epoch.
Question 3 of 16
Which month index represents September in the multi-argument Date constructor?
Date constructor month arguments are zero-based.
Question 4 of 16
What does Date.UTC return?
Date.UTC computes a time value and returns the Number.
Question 5 of 16
Which input is within the standardized ECMAScript date-time string format?
The ISO-like ECMAScript date-time string format is standardized.
Question 6 of 16
What does an explicit +02:00 offset primarily provide when parsing a timestamp?
The offset identifies the instant represented by the string.
Question 7 of 16
Why can getHours() differ from getUTCHours()?
The same instant can have different local and UTC clock-hour representations.
Question 8 of 16
Are Date instances mutable?
Date setter methods mutate the stored time value.
Question 9 of 16
What does getTime() return for an invalid Date?
Invalid Date has a NaN time value.
Question 10 of 16
How is a Date normally serialized by JSON.stringify?
Date.prototype.toJSON produces an ISO-style UTC string.
Question 11 of 16
What does Temporal.Instant model?
Instant is for an exact point on the time line.
Question 12 of 16
Which Temporal type models a calendar date without a time of day?
PlainDate is date-only.
Question 13 of 16
Which Temporal type includes a named time zone?
ZonedDateTime combines date/time information with a named zone and its rules.
Question 14 of 16
What happens when Temporal.PlainDate.add() is called?
Temporal objects are immutable.
Question 15 of 16
What does Temporal.Duration represent?
Duration is an amount such as days, hours, or minutes.
Question 16 of 16
Which modeling choice best matches a birthday?
A birthday is a calendar date and does not inherently identify an instant.
Quiz results
0/0
Review
-
What does a Date object fundamentally store?Hint used
-
What instant is time value 0?Hint used
-
Which month index represents September in the multi-argument Date constructor?Hint used
-
What does Date.UTC return?Hint used
-
Which input is within the standardized ECMAScript date-time string format?Hint used
-
What does an explicit +02:00 offset primarily provide when parsing a timestamp?Hint used
-
Why can getHours() differ from getUTCHours()?Hint used
-
Are Date instances mutable?Hint used
-
What does getTime() return for an invalid Date?Hint used
-
How is a Date normally serialized by JSON.stringify?Hint used
-
What does Temporal.Instant model?Hint used
-
Which Temporal type models a calendar date without a time of day?Hint used
-
Which Temporal type includes a named time zone?Hint used
-
What happens when Temporal.PlainDate.add() is called?Hint used
-
What does Temporal.Duration represent?Hint used
-
Which modeling choice best matches a birthday?Hint used