Question · JavaScript and TypeScript course · Module 12: Functional Programming
Spread Operator and Objects
What does the spread operator (...) do with nested objects?
Answer options
- Freezes the object from modifications
- Creates a shallow copy - nested objects are shared
- Creates a deep copy on all levels
- Converts the object to an array
You can check the correct answer by solving this task in the CodeWorlds game.