In the following code,
the object user
contains
all the information on a user.
Destructure the object user
to store the values of the properties
dateOfBirth
and phoneNumber
in separate variables,
and
the other properties in
another object publicInfo
.
For example: