Question 30 of 5258%
30
What will happen if you run this code?
const user = {
name: 'Joe',
age: 25,
pet: {
type: 'dog',
name: 'Buttercup'
}
};
Object.freeze(user);
user.pet.name = 'Daffodil';
user.name = "jhon";
console.log(user.pet.name,user.name);
30/52