What will be shown in the console when executing the following code?
const pet = { name: 'Fido', type: 'dog' };
const copy = Object.assign({}, pet, { age: 5 });
console.log(copy.age);
What will be shown in the console when executing the following code?
const pet = { name: 'Fido', type: 'dog' };
const copy = Object.assign({}, pet, { age: 5 });
console.log(copy.age);