Make a deep copy of the object below (man) using the spread operator. Don't output or return anything, complete the shallowCopy definition.
Shallow Copying Objects
Deep copy using spread
Report a typo
Write a program in JavaScript
const man = { name: 'John', mother: { name: 'Bella'} };
const shallowCopy = //write your code here
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.