The Art of JavaScript Cloning
There’s a right way and a wrong way to make copies of custom objects
It should be simple. You have a small object. Maybe something like this, defined here with object literal syntax:
const student = {
studentId: '445-13-196',
firstName: 'Tazie,
lastName: 'Yang',
dateOfBirth: new Date(1995, 8, 15)
};