Object celebration 03
const a = {
a1: 1,
a2: 2,
countryCallingCodes: { US: 1, UK: 44 }
};
Create a new object b
, which is a deep copy
of the object a
. In other words, if we ever
mutate the object a
, it does not affect the object b
.
Join the waiting list to see the solution