Quiz · Objects · lesson 8 of 13Quiz — a shallow copyWhat kind of copy do Object.assign({}, o) and spread syntax {...o} produce?[A]Both make a deep copy, the same as structuredClone: every nested object is copied as well, so the copy shares nothing with the original, and changing a nested object through the copy never affects the original.[B]Neither makes a copy: both give back the same object under a new name, so even changing a top-level number through the copy changes the original, the same as after const b = a.[C]Both make a shallow copy: a new object with the same top-level properties. A nested object is not copied — the copy refers to the same nested object, so changing it through the copy changes the original too.[D]Both copy the nested objects but share the top-level values: changing a top-level number through the copy changes the original, while a change to a nested object stays in the copy.Subscribe to take the courseThe course is free. Sign in with Telegram and subscribe to the channel to open every lesson.Continue with TelegramSign in another way← BackCopying an objectNext →Destructuring