Sobes.tech
Junior — Senior

Method for calculating the sum of all array elements

livecode

Task condition

Create a deep copy of the object so that changes in the copy do not affect the original.

let person = {
  fullName: 'Igor',
  years: 19,
  location: {
    town: 'Petersburg'
  }
}