Question · JavaScript and TypeScript course · Module 12: Functional Programming
Object Copy Depth
Which object copying method in JavaScript creates a deep clone?
Answer options
- Object.assign()
- Operator spread (...)
- structuredClone()
- Reference assignment (=)
You can check the correct answer by solving this task in the CodeWorlds game.