✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
What will be the output of the following code?
let animal = {type: 'dog'};
let pet = animal;
animal.type = 'cat';
console.log(pet.type);
]]>