What is the result of the following code?
const animal = { type: 'dog' };
animal['sound'] = 'bark';
console.log(animal.sound);
What is the result of the following code?
const animal = { type: 'dog' };
animal['sound'] = 'bark';
console.log(animal.sound);