public/subjects/mutability
davhojt c3e13bb0d9
docs(mutability): correct grammar
2022-04-30 00:01:40 +01:00
..
README.md docs(mutability): correct grammar 2022-04-30 00:01:40 +01:00

README.md

Mutability

Instructions

Create three copies of the person object named clone1, clone2 and samePerson.

Increase the age of person by one, and set its country to 'FR'.

You must find a way to keep the original values of clone1 and clone2. The values of samePerson should change when person is changed.

Notions

Code provided

The provided code will be added to your solution, and does not need to be submitted.

const person = {
  name: 'Rick',
  age: 77,
  country: 'US',
}