Skip to content
RED SAGSkills
easy5 pts · first answer countsjavascriptapi-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