FrontendInterviews.dev

688. structuredClone and Date

Easy•

Predict the output.

const d = new Date('2020-01-01T00:00:00.000Z')
const c = structuredClone(d)
console.log(c instanceof Date, c.getTime() === d.getTime())

What is printed in the console?

Select an option and submit your answer.
Next Problem