mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
davhojt
c3e13bb0d9
|
3 years ago | |
---|---|---|
.. | ||
README.md | 3 years ago |
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',
}