Skip to content
RED SAG Skills
easyStudy question · answer published in REST API interview questions, so no pointsjavascriptapi-design

Dates sent through JSON

An API returns this object as JSON and the client parses it. What does the last line print?

const sent = { createdAt: new Date('2026-01-05T10:00:00Z') }
const received = JSON.parse(JSON.stringify(sent))
console.log(typeof received.createdAt)
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions