DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
Interview Prep Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
Interview Prep
What goes wrong with `{ ...someDate }` as an attempt to clone a Date object?
A
Nothing, it works correctly
B
It produces a plain object with the Date's enumerable-if-any properties but none of its Date methods — it's not a Date anymore
C
It throws a runtime error
D
It clones the Date but loses only the milliseconds
Check Answer